Docs
chromia.com

Class

AmountDecimalsError

On this page

Thrown to indicate an error with the number of decimals with an amount. Could for example be that number of decimals is too big, or that an operation is trying to be applied on two amounts with different number of decimals.

Hierarchy

  • Error
    • AmountDecimalsError

Constructors

constructor

  • new AmountDecimalsError(msg?: string): AmountDecimalsError

    Parameters

    • Optionalmsg: string

    Returns AmountDecimalsError

    Overrides Error.constructor