ApiError

errors · /index·class

Base class for all API-layer errors, defaulting to HTTP 500 and the API_UNKNOWN_ERROR code family.

Signature

Example

throw new ApiError('upstream fetch failed', 503);

ApiErrorKind GenericErrorKind CartNotFoundError CartProviderError CartUserError ConvexOperatorTokenMintError DomainVerificationError DuplicateContextDirectiveError

Sourceindex.ts:214Edit the JSDoc directly
Metadata@nordcom/commerce-errors@0.0.0Open in GitHub ↗

On this page