Errors
@mobify/commerce-integrations/dist/errors
The errors
module contains any error type classes used by
Commerce Integrations.
class
InvalidArgumentError
The user supplied invalid arguments to a function/method. Usually an error in code.
Importimport { InvalidArgumentError } from '@mobify/commerce-integrations/dist/errors
class
ServerError
The server returned an error response.
Importimport { ServerError } from '@mobify/commerce-integrations/dist/errors
class
ForbiddenError
The server returned a forbidden response.
Importimport { ForbiddenError } from '@mobify/commerce-integrations/dist/errors
class
NotFoundError
The server returned a not found response.
Importimport { NotFoundError } from '@mobify/commerce-integrations/dist/errors
class
UnsupportedError
The called method is not implemented or supported on a backend.
Importimport { UnsupportedError } from '@mobify/commerce-integrations/dist/errors
class
NotAuthenticatedError
A request was rejected because the user is not authenticated.
In screen-scraping APIs this may be different from a “Forbidden” response - eg. a redirect to a login page might trigger the error.
Importimport { NotAuthenticatedError } from '@mobify/commerce-integrations/dist/errors