Class InvalidBlockBytesLengthException
An exception thrown when the encoded bytes of Transactions exceeds
Inheritance
InvalidBlockBytesLengthException
Implements
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.Data
System.Exception.HResult
System.Exception.TargetSite
System.Object.GetHashCode()
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public sealed class InvalidBlockBytesLengthException : BlockPolicyViolationException, ISerializable
Constructors
| Improve this Doc View SourceInvalidBlockBytesLengthException(String, Int64)
Initializes a new instance of InvalidBlockBytesLengthException class.
Declaration
public InvalidBlockBytesLengthException(string message, long bytesLength)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message that describes the error. |
| Int64 | bytesLength | The actual encoded length of Transactions as bytes. |
Properties
| Improve this Doc View SourceBytesLength
The actual encoded length of Transactions as bytes.
Declaration
public long BytesLength { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
An exception thrown when the encoded bytes of Transactions exceeds
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| StreamingContext | context |
Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)