Class MappingException
Implements
Inherited Members
Namespace: SharpOpenNat
Assembly: SharpOpenNat.dll
Syntax
[Serializable]
public class MappingException : Exception, ISerializable
Constructors
| Edit this page View SourceMappingException(SerializationInfo, StreamingContext)
Initializes a new instance of the Exception class with serialized data.
Declaration
protected MappingException(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. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| SerializationException |
Properties
| Edit this page View SourceErrorCode
Declaration
public int ErrorCode { get; }
Property Value
| Type | Description |
|---|---|
| int |
ErrorText
Declaration
public string? ErrorText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceGetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(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. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The |