WsgError Class
Beta
Error that was returned by a WSG based service.
Extends
Extended by
Methods
Name |
Description |
|
constructor(errorNumber: number | HttpStatus, message?: string, getMetaData?: GetMetaDataFunction): WsgError |
|
|
log(): void |
Logs this error |
|
getErrorStatus(errorId: number, httpStatusType: number): number Static |
Gets error status from current WSError and HTTP Status type |
|
getWSStatusId(error: string): number Static |
Get WSError from error string |
|
parse(response: any, log: boolean = true): ResponseError Static |
Attempt to parse the error from the response. |
|
shouldRetry(error: any, response: any): boolean Static |
Decides whether request should be retried or not |
|
Inherited methods
Inherited properties
Defined in
Last Updated:
08 January, 2020