Show / Hide Table of Contents

Class InsufficientBalanceException

The exception that is thrown when a sender has less Balance than amount to transfer or an owner has less Balance than amount to burn.

Inheritance
Object
Exception
InsufficientBalanceException
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.Action.State
Assembly: Libplanet.Action.dll
Syntax
[Serializable]
public sealed class InsufficientBalanceException : Exception, ISerializable

Constructors

| Improve this Doc View Source

InsufficientBalanceException(String, Address, FungibleAssetValue)

Creates a new InsufficientBalanceException object.

Declaration
public InsufficientBalanceException(string message, Address address, FungibleAssetValue balance)
Parameters
Type Name Description
String message

Specifies a Message.

Address address

The owner of the insufficient balance. Corresponds to the Address property.

FungibleAssetValue balance

The account's current balance. Corresponds to the Balance property.

See Also
TransferAsset(IActionContext, Address, Address, FungibleAssetValue, Boolean)
BurnAsset(IActionContext, Address, FungibleAssetValue)

Properties

| Improve this Doc View Source

Address

The owner of the insufficient Balance.

Declaration
public Address Address { get; }
Property Value
Type Description
Address
See Also
TransferAsset(IActionContext, Address, Address, FungibleAssetValue, Boolean)
BurnAsset(IActionContext, Address, FungibleAssetValue)
| Improve this Doc View Source

Balance

The account's current balance.

Declaration
public FungibleAssetValue Balance { get; }
Property Value
Type Description
FungibleAssetValue
See Also
TransferAsset(IActionContext, Address, Address, FungibleAssetValue, Boolean)
BurnAsset(IActionContext, Address, FungibleAssetValue)

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

The exception that is thrown when a sender has less Balance than amount to transfer or an owner has less Balance than amount to burn.

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)
See Also
TransferAsset(IActionContext, Address, Address, FungibleAssetValue, Boolean)
BurnAsset(IActionContext, Address, FungibleAssetValue)

Implements

System.Runtime.Serialization.ISerializable

See Also

TransferAsset(IActionContext, Address, Address, FungibleAssetValue, Boolean)
BurnAsset(IActionContext, Address, FungibleAssetValue)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium