Class InvalidTokenAmountError

Error type indicating the supplied token amount is not compatible with the token.

Hierarchy

Constructors

Properties

amount: TokenAmount

The token amount that is invalid.

code: INVALID_TOKEN_AMOUNT = TokenErrorCode.INVALID_TOKEN_AMOUNT
message: string
stack?: string
tokenDecimals: number

The number of decimals the token supports.

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get name(): string
  • Gets the name of the error, including its code.

    Returns

    The name of the error.

    Returns string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc