Class ParseErrorException
The exception that is thrown when trying to parse a value as an actual type.
Inherited Members
Namespace: Unity.Serialization
Syntax
[Serializable]
public class ParseErrorException : Exception, ISerializable, _Exception
Constructors
ParseErrorException(SerializationInfo, StreamingContext)
Initializes a new instance of the ParseErrorException class with serialized data.
Declaration
protected ParseErrorException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
ParseErrorException(String)
Initialized a new instance of the ParseErrorException class with a specified error message.
Declaration
public ParseErrorException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
ParseErrorException(String, Exception)
Initializes a new instance of the ParseErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public ParseErrorException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | inner | The inner exception reference. |