Class BencodeException
Represents a bencode error.
Inheritance
System.Object
System.Exception
BencodeException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
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 abstract class BencodeException : Exception, ISerializable
Constructors
| Improve this Doc View SourceBencodeException()
Initializes a new instance of the BencodeException class.
Declaration
protected BencodeException()
BencodeException(Nullable<String>)
Initializes a new instance of the BencodeException class with the
specified error message.
Declaration
protected BencodeException(string? message)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.String> | message | The error message. |
BencodeException(Nullable<String>, Nullable<Exception>)
Initializes a new instance of the BencodeException class with the
specified error message and inner exception that is the cause of this exception.
Declaration
protected BencodeException(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. |
BencodeException(SerializationInfo, StreamingContext)
Initializes a new instance of the BencodeException class with serialized
data.
Declaration
protected BencodeException(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 |
Implements
System.Runtime.Serialization.ISerializable