Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "service/errors"

Index

Variables

Object literals

Variables

Const codesPrefix

codesPrefix: string = errorCodesPrefix.SERVICE

Object literals

Const errorCodes

errorCodes: object

INVALID_ARGUMENT

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

NOMATCHING_MODE_IS_REQUIRED

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

OPEN_CHANNEL_FAILURE

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

PENDING_CALL_CONFLICT

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

UNIMPLEMENTED

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

Const errors

errors: object

INVALID_ARGUMENT

  • INVALID_ARGUMENT(message: string): object
  • Parameters

    • message: string

    Returns object

    • code: string
    • message: string

NOMATCHING_MODE_IS_REQUIRED

  • NOMATCHING_MODE_IS_REQUIRED(): object

OPEN_CHANNEL_FAILURE

  • OPEN_CHANNEL_FAILURE(currency: string, nodePubKey: string, amount: number, message: string): object
  • Parameters

    • currency: string
    • nodePubKey: string
    • amount: number
    • message: string

    Returns object

    • code: string
    • message: string

PENDING_CALL_CONFLICT

PENDING_CALL_CONFLICT: object

code

code: string = errorCodes.PENDING_CALL_CONFLICT

message

message: string = "a pending call is ongoing that conflicts with this call"

UNIMPLEMENTED

UNIMPLEMENTED: object

code

code: string = errorCodes.UNIMPLEMENTED

message

message: string = "call is not supported by the current state of xud"

Generated using TypeDoc