Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "swaps/errors"

Index

Variables

Object literals

Variables

Const codesPrefix

codesPrefix: string = errorCodesPrefix.SWAPS

Object literals

Const errorCodes

errorCodes: object

INVALID_RESOLVE_REQUEST

INVALID_RESOLVE_REQUEST: string = codesPrefix.concat('.6')

PAYMENT_ERROR

PAYMENT_ERROR: string = codesPrefix.concat('.4')

PAYMENT_HASH_NOT_FOUND

PAYMENT_HASH_NOT_FOUND: string = codesPrefix.concat('.3')

PAYMENT_REJECTED

PAYMENT_REJECTED: string = codesPrefix.concat('.5')

SWAP_CLIENT_NOT_CONFIGURED

SWAP_CLIENT_NOT_CONFIGURED: string = codesPrefix.concat('.2')

SWAP_CLIENT_NOT_FOUND

SWAP_CLIENT_NOT_FOUND: string = codesPrefix.concat('.1')

SWAP_CLIENT_WALLET_NOT_CREATED

SWAP_CLIENT_WALLET_NOT_CREATED: string = codesPrefix.concat('.7')

Const errors

errors: object

INVALID_RESOLVE_REQUEST

  • INVALID_RESOLVE_REQUEST(rHash: string, errorMessage: string): object
  • Parameters

    • rHash: string
    • errorMessage: string

    Returns object

    • code: string
    • message: string

PAYMENT_ERROR

  • PAYMENT_ERROR(message: string): object
  • Parameters

    • message: string

    Returns object

    • code: string
    • message: string

PAYMENT_HASH_NOT_FOUND

  • PAYMENT_HASH_NOT_FOUND(rHash: string): object
  • Parameters

    • rHash: string

    Returns object

    • code: string
    • message: string

SWAP_CLIENT_NOT_CONFIGURED

  • SWAP_CLIENT_NOT_CONFIGURED(currency: string): object
  • Parameters

    • currency: string

    Returns object

    • code: string
    • message: string

SWAP_CLIENT_NOT_FOUND

  • SWAP_CLIENT_NOT_FOUND(currency: string): object
  • Parameters

    • currency: string

    Returns object

    • code: string
    • message: string

SWAP_CLIENT_WALLET_NOT_CREATED

  • SWAP_CLIENT_WALLET_NOT_CREATED(message: string): object
  • Parameters

    • message: string

    Returns object

    • code: string
    • message: string

PAYMENT_REJECTED

PAYMENT_REJECTED: object

code

code: string = errorCodes.PAYMENT_REJECTED

message

message: string = "the recipient rejected our payment for the swap"

Generated using TypeDoc