Skip to content

@terminaldz/zrexpress-sdk / index / ZrExpressServerError

Class: ZrExpressServerError ​

Defined in: errors.ts:94

5xx — server error.

Extends ​

Constructors ​

Constructor ​

ts
new ZrExpressServerError(message, args): ZrExpressServerError;

Defined in: errors.ts:58

Parameters ​

ParameterType
messagestring
argsApiErrorArgs

Returns ​

ZrExpressServerError

Inherited from ​

ZrExpressApiError.constructor

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
statusreadonlynumber-ZrExpressApiError.statuserrors.ts:47
code?readonlystringMachine code from ProblemDetails.title, e.g. "ParcelErrors.NotFound".ZrExpressApiError.codeerrors.ts:49
detail?readonlystringHuman message from ProblemDetails.detail.ZrExpressApiError.detailerrors.ts:51
traceId?readonlystringSupport correlation id from the ProblemDetails traceId extension.ZrExpressApiError.traceIderrors.ts:53
problem?readonlyobject & objectRaw problem body when one was present (401/403 legitimately have none).ZrExpressApiError.problemerrors.ts:55
requestIdreadonlyZrRequestId-ZrExpressApiError.requestIderrors.ts:56

Released under the MIT License. Not affiliated with ZR Express.