Class InvalidBencodeException
Represents an error caused by parsing invalid bencode.
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ItsyBitsy.Bencoding
Assembly: ItsyBitsy.Bencoding.dll
Syntax
[Serializable]
public class InvalidBencodeException : BencodeException, ISerializable
Constructors
| Improve this Doc View SourceInvalidBencodeException()
Initializes a new instance of the InvalidBencodeException class.
Declaration
public InvalidBencodeException()
InvalidBencodeException(Nullable<String>)
Initializes a new instance of the InvalidBencodeException class with the
specified error message.
Declaration
public InvalidBencodeException(string? message)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.String> | message | The error message. |
InvalidBencodeException(Nullable<String>, Int64)
Initializes a new instance of the InvalidBencodeException class with the
specified error message and position in the stream where the error occurred.
Declaration
public InvalidBencodeException(string? message, long position)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.String> | message | The error message. |
System.Int64 | position | The position in the stream where the error occurred. |
InvalidBencodeException(Nullable<String>, Nullable<Exception>)
Initializes a new instance of the InvalidBencodeException class with the
specified error message and inner exception that is the cause of this exception.
Declaration
public InvalidBencodeException(string? message, Exception? inner)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.String> | message | The error message. |
System.Nullable<System.Exception> | inner | The inner exception that is the cause of this exception. |
InvalidBencodeException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidBencodeException class with
serialized data.
Declaration
protected InvalidBencodeException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | |
System.Runtime.Serialization.SerializationException |
Properties
| Improve this Doc View SourcePosition
The position in the stream where the error occurred.
Declaration
public long Position { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | info is
null. |
Implements
System.Runtime.Serialization.ISerializable