Error Types
This error should be thrown when some unexpected and exceptional case is encountered.
- Extends:
I18nError
constructor
method
(message: string, variables: { [key: string]: string | number } = {}) => InternalServerErrorThis error should be thrown when user input is not as expected.
- Extends:
I18nError
constructor
method
(message: string, variables: { [key: string]: string | number } = {}) => UserInputErrorThis error should be thrown when an operation is attempted which is not allowed.
- Extends:
I18nError
constructor
method
(message: string, variables: { [key: string]: string | number } = {}) => IllegalOperationErrorThis error should be thrown when the user's authentication credentials do not match.
- Extends:
I18nError
This error should be thrown when a user attempts to access a resource which is outside of his or her privileges.
- Extends:
I18nError
constructor
method
(logLevel: LogLevel = LogLevel.Warn) => ForbiddenErrorThis error should be thrown when a Channel cannot be found based on the provided channel token.
- Extends:
I18nError
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.
- Extends:
I18nError
constructor
method
(entityName: keyof typeof coreEntitiesMap | string, id: ID) => EntityNotFoundErrorWas this chapter helpful?