Show / Hide Table of Contents

Class InvalidBlockBytesLengthException

An exception thrown when a Block<T>'s encoded bytes exceeds GetMaxBlockBytes(Int64).

Inheritance
Object
InvalidBlockException
BlockPolicyViolationException
InvalidBlockBytesLengthException
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public sealed class InvalidBlockBytesLengthException : BlockPolicyViolationException

Constructors

| Improve this Doc View Source

InvalidBlockBytesLengthException(String, Int64)

Initializes a new instance of InvalidBlockBytesLengthException class.

Declaration
public InvalidBlockBytesLengthException(string message, long bytesLength)
Parameters
Type Name Description
String message

The message that describes the error.

Int64 bytesLength

The actual length of the Block<T>'s encoded bytes.

Properties

| Improve this Doc View Source

BytesLength

The actual length of the Block<T>'s encoded bytes.

Declaration
public long BytesLength { get; }
Property Value
Type Description
Int64

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium