API ReferenceGlobalsErrorHandler

# Class: ErrorHandler

# Hierarchy

  • ErrorHandler

# Index

# Methods

# Methods

# dispatch

dispatch(errorCode: ERROR_CODES, args?: any[]): void

Defined in packages/common-core/src/error-handler.ts:32

Parameters:

Name Type
errorCode ERROR_CODES
args? any[]

Returns: void


# softReject

softReject(resolve: function, errorMessage: string, errorCode: ERROR_CODES): any

Defined in packages/common-core/src/error-handler.ts:60

Parameters:

resolve: function

▸ (...args: any[]): any

Parameters:

Name Type
...args any[]

errorMessage: string

errorCode: ERROR_CODES

Returns: any


# subscribe

subscribe(errorCode: ERROR_CODES, callback: ErrorListener): void

Defined in packages/common-core/src/error-handler.ts:28

Parameters:

Name Type
errorCode ERROR_CODES
callback ErrorListener

Returns: void


# unsubscribe

unsubscribe(errorCode: ERROR_CODES, callback: ErrorListener): void

Defined in packages/common-core/src/error-handler.ts:44

Parameters:

Name Type
errorCode ERROR_CODES
callback ErrorListener

Returns: void