Class MessagePackSerializationException
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
Represents errors that occur during MessagePack serialization.
public class MessagePackSerializationException : Exception, ISerializable
- Inheritance
-
MessagePackSerializationException
- Implements
- Inherited Members
Constructors
MessagePackSerializationException()
Initializes a new instance of the MessagePackSerializationException class.
public MessagePackSerializationException()
MessagePackSerializationException(string?)
Initializes a new instance of the MessagePackSerializationException class with a specified error message.
public MessagePackSerializationException(string? message)
Parameters
message
stringThe message that describes the error.
MessagePackSerializationException(string?, Exception?)
Initializes a new instance of the MessagePackSerializationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public MessagePackSerializationException(string? message, Exception? innerException)
Parameters
message
stringThe message that describes the error.
innerException
ExceptionThe exception that is the cause of the current exception, or a null reference if no inner exception is specified.
Properties
Code
Gets the specific cause for a failure, if specified.
public MessagePackSerializationException.ErrorCode Code { get; init; }