Show / Hide Table of Contents

Class UnsupportedBencodeException

Represents an error caused by parsing bencode that may be valid but is not supported by the parser.
Inheritance
System.Object
System.Exception
BencodeException
UnsupportedBencodeException
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 UnsupportedBencodeException : BencodeException, ISerializable

Constructors

| Improve this Doc View Source

UnsupportedBencodeException()

Initializes a new instance of the UnsupportedBencodeException class.
Declaration
public UnsupportedBencodeException()
| Improve this Doc View Source

UnsupportedBencodeException(Nullable<String>)

Initializes a new instance of the UnsupportedBencodeException class with the specified error message.
Declaration
public UnsupportedBencodeException(string? message)
Parameters
Type Name Description
System.Nullable<System.String> message The error message.
| Improve this Doc View Source

UnsupportedBencodeException(Nullable<String>, Int64)

Initializes a new instance of the UnsupportedBencodeException class with the specified error message and position in the stream where the error occurred.
Declaration
public UnsupportedBencodeException(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.
| Improve this Doc View Source

UnsupportedBencodeException(Nullable<String>, Nullable<Exception>)

Initializes a new instance of the UnsupportedBencodeException class with the specified error message and inner exception that is the cause of this exception.
Declaration
public UnsupportedBencodeException(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.
| Improve this Doc View Source

UnsupportedBencodeException(SerializationInfo, StreamingContext)

Initializes a new instance of the UnsupportedBencodeException class with serialized data.
Declaration
protected UnsupportedBencodeException(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 Source

Position

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 Source

GetObjectData(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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX