Options
All
  • Public
  • Public/Protected
  • All
Menu

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')

INVALID_REQUEST

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

NODE_ALREADY_EXISTS

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

NODE_DOES_NOT_EXIST

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

NOMATCHING_MODE_IS_REQUIRED

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

NO_CHANNELS_TO_CLOSE

NO_CHANNELS_TO_CLOSE: string = codesPrefix.concat('.8')

NO_ENCRYPT_MODE_ENABLED

NO_ENCRYPT_MODE_ENABLED: string = codesPrefix.concat('.9')

OPEN_CHANNEL_FAILURE

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

PENDING_CALL_CONFLICT

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

Const errors

errors: object

INVALID_ARGUMENT

  • INVALID_ARGUMENT(message: string): { code: string; message: string }
  • Parameters

    • message: string

    Returns { code: string; message: string }

    • code: string
    • message: string

NOMATCHING_MODE_IS_REQUIRED

  • NOMATCHING_MODE_IS_REQUIRED(): { code: string; message: string }

NO_CHANNELS_TO_CLOSE

  • NO_CHANNELS_TO_CLOSE(remoteIdentifier: string): { code: string; message: string }
  • Parameters

    • remoteIdentifier: string

    Returns { code: string; message: string }

    • code: string
    • message: string

OPEN_CHANNEL_FAILURE

  • OPEN_CHANNEL_FAILURE(currency: string, amount: number, errorMessage: string, nodeIdentifier?: undefined | string): { code: string; message: string }
  • Parameters

    • currency: string
    • amount: number
    • errorMessage: string
    • Optional nodeIdentifier: undefined | string

    Returns { code: string; message: string }

    • code: string
    • message: string

INVALID_REQUEST

INVALID_REQUEST: object

code

code: string = errorCodes.INVALID_REQUEST

message

message: string = "invalid request"

NODE_ALREADY_EXISTS

NODE_ALREADY_EXISTS: object

code

code: string = errorCodes.NODE_ALREADY_EXISTS

message

message: string = "xud node cannot be created because it already exists"

NODE_DOES_NOT_EXIST

NODE_DOES_NOT_EXIST: object

code

code: string = errorCodes.NODE_DOES_NOT_EXIST

message

message: string = "xud node cannot be unlocked because it does not exist"

NO_ENCRYPT_MODE_ENABLED

NO_ENCRYPT_MODE_ENABLED: object

code

code: string = errorCodes.NO_ENCRYPT_MODE_ENABLED

message

message: string = "xud is not encrypted with a password"

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"

Generated using TypeDoc