Skip to content

@terminaldz/zrexpress-sdk / index / ZrExpressValidationError

Class: ZrExpressValidationError ​

Defined in: errors.ts:80

400 — validation/bad request (non-bulk operations only, see D9).

Extends ​

Constructors ​

Constructor ​

ts
new ZrExpressValidationError(message, args): ZrExpressValidationError;

Defined in: errors.ts:58

Parameters ​

ParameterType
messagestring
argsApiErrorArgs

Returns ​

ZrExpressValidationError

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.