Show / Hide Table of Contents

Class InvalidBlockBytesLengthException

The exception that is thrown when a Block<T>'s BytesLength (i.e., the length of bytes in its serialized format) is too long.

Inheritance
Object
Exception
InvalidBlockException
InvalidBlockBytesLengthException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class InvalidBlockBytesLengthException : InvalidBlockException, ISerializable

Constructors

| Improve this Doc View Source

InvalidBlockBytesLengthException(Int32, Int32, String)

Initializes a new instance of InvalidBlockBytesLengthException class.

Declaration
public InvalidBlockBytesLengthException(int blockBytesLength, int maxBlockBytesLength, string message)
Parameters
Type Name Description
Int32 blockBytesLength

The invalid Block<T>'s BytesLength. It is automatically included to the Message string.

Int32 maxBlockBytesLength

The maximum allowed length of bytes. It is automatically included to the Message string.

String message

The message that describes the error.

Properties

| Improve this Doc View Source

BlockBytesLength

The bytes length of the actual block.

Declaration
public int BlockBytesLength { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MaxBlockBytesLength

The maximum allowed length of a block in bytes.

Declaration
public int MaxBlockBytesLength { get; set; }
Property Value
Type Description
Int32
See Also
GetMaxBlockBytes(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
Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

ExtractableException.ExtractMetadata(Exception)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium