Class SerializationException
- Namespace
- AiDotNet.Exceptions
- Assembly
- AiDotNet.dll
Exception thrown when serialization or deserialization operations fail.
public class SerializationException : AiDotNetException, ISerializable
- Inheritance
-
SerializationException
- Implements
- Inherited Members
Constructors
SerializationException()
Creates a new instance of the SerializationException class.
public SerializationException()
SerializationException(string)
Creates a new instance of the SerializationException class with a specified error message.
public SerializationException(string message)
Parameters
messagestringThe message that describes the error.
SerializationException(string, Exception)
Creates a new instance of the SerializationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public SerializationException(string message, Exception innerException)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that is the cause of the current exception.
SerializationException(string, string, string)
Creates a new instance of the SerializationException class with a specified error message and context information about where the exception occurred.
public SerializationException(string message, string component, string operation)
Parameters
messagestringThe message that describes the error.
componentstringThe component where the serialization error occurred.
operationstringThe operation being performed when the error was detected.
SerializationException(string, string, string, Exception)
Creates a new instance of the SerializationException class with a specified error message, context information, and a reference to the inner exception.
public SerializationException(string message, string component, string operation, Exception innerException)
Parameters
messagestringThe message that describes the error.
componentstringThe component where the serialization error occurred.
operationstringThe operation being performed when the error was detected.
innerExceptionExceptionThe exception that is the cause of the current exception.
Properties
Component
The component where the serialization error occurred.
public string Component { get; }
Property Value
Operation
The operation being performed when the error was detected.
public string Operation { get; }