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
InsufficientBalanceException
Namespace: Libplanet.Action
Assembly: Libplanet.dll
Syntax
public sealed class InsufficientBalanceException : Exception

Constructors

| Improve this Doc View Source

InsufficientBalanceException(Address, Currency, BigInteger, Nullable<String>)

Creates a new InsufficientBalanceException object.

Declaration
public InsufficientBalanceException(Address address, Currency currency, BigInteger balance, string? message)
Parameters
Type Name Description
Address address

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

Currency currency

The Currency of the insufficient balance. Corresponds to the Currency property.

BigInteger balance

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

Nullable<String> message

Specifies a .

Properties

| Improve this Doc View Source

Address

The owner of the insufficient Balance.

Declaration
public Address Address { get; }
Property Value
Type Description
Address
| Improve this Doc View Source

Balance

The account's current balance of the Currency.

Declaration
public BigInteger Balance { get; }
Property Value
Type Description
BigInteger
| Improve this Doc View Source

Currency

The Currency of the insufficient Balance.

Declaration
public Currency Currency { get; }
Property Value
Type Description
Currency

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

See Also

TransferAsset(Address, Address, Currency, BigInteger, Boolean)
BurnAsset(Address, Currency, BigInteger)
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium