Variable ErrorCodeConst

ErrorCode: {
    AccountIdEmpty: "AccountIdEmpty";
    AssetEmpty: "AssetEmpty";
    DivisionByZero: "DivisionByZero";
    InvalidFloat: "InvalidFloat";
    InvalidFormat: "InvalidFormat";
    InvalidLeverage: "InvalidLeverage";
    InvalidPrice: "InvalidPrice";
    Negative: "Negative";
    Other: "Other";
    Overflow: "Overflow";
    Underflow: "Underflow";
    Unspecified: "Unspecified";
} = ...

Stable machine-readable numeric/value validation code.

Type declaration

  • ReadonlyAccountIdEmpty: "AccountIdEmpty"

    Empty account identifier.

  • ReadonlyAssetEmpty: "AssetEmpty"

    Empty asset identifier.

  • ReadonlyDivisionByZero: "DivisionByZero"

    Division by zero.

  • ReadonlyInvalidFloat: "InvalidFloat"

    NaN or infinite floating-point input.

  • ReadonlyInvalidFormat: "InvalidFormat"

    Text that is not a valid decimal.

  • ReadonlyInvalidLeverage: "InvalidLeverage"

    Invalid leverage value.

  • ReadonlyInvalidPrice: "InvalidPrice"

    Invalid price value.

  • ReadonlyNegative: "Negative"

    Negative value supplied to a non-negative parameter.

  • ReadonlyOther: "Other"

    Validation failure outside the specific cases above.

  • ReadonlyOverflow: "Overflow"

    Arithmetic overflow.

  • ReadonlyUnderflow: "Underflow"

    Arithmetic underflow.

  • ReadonlyUnspecified: "Unspecified"

    No more-specific code applies.