Skip to main content

Error Types

This error should be thrown when some unexpected and exceptional case is encountered.

Signature

constructor

method(message: string, variables: { [key: string]: string | number } = {}) => InternalServerError

This error should be thrown when user input is not as expected.

Signature

constructor

method(message: string, variables: { [key: string]: string | number } = {}) => UserInputError

This error should be thrown when an operation is attempted which is not allowed.

Signature

constructor

method(message: string, variables: { [key: string]: string | number } = {}) => IllegalOperationError

This error should be thrown when the user's authentication credentials do not match.

Signature

constructor

method() => UnauthorizedError

This error should be thrown when a user attempts to access a resource which is outside of his or her privileges.

Signature

constructor

method(logLevel: LogLevel = LogLevel.Warn) => ForbiddenError

This error should be thrown when a Channel cannot be found based on the provided channel token.

Signature

constructor

method(token: string) => ChannelNotFoundError

This error should be thrown when an entity cannot be found in the database, i.e. no entity of the given entityName (Product, User etc.) exists with the provided id.

Signature

constructor

method(entityName: keyof typeof coreEntitiesMap | string, id: ID) => EntityNotFoundError
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page