menu
Menu
Mobify DevCenter
search_icon_focus

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.

Import
import { InvalidArgumentError } from '@mobify/commerce-integrations/dist/errors
class

ServerError

The server returned an error response.

Import
import { ServerError } from '@mobify/commerce-integrations/dist/errors
class

ForbiddenError

The server returned a forbidden response.

Import
import { ForbiddenError } from '@mobify/commerce-integrations/dist/errors
class

NotFoundError

The server returned a not found response.

Import
import { NotFoundError } from '@mobify/commerce-integrations/dist/errors
class

UnsupportedError

The called method is not implemented or supported on a backend.

Import
import { 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.

Import
import { NotAuthenticatedError } from '@mobify/commerce-integrations/dist/errors