Error Types
InternalServerError
This error should be thrown when some unexpected and exceptional case is encountered.
- Extends:
I18nError
UserInputError
This error should be thrown when user input is not as expected.
- Extends:
I18nError
IllegalOperationError
This error should be thrown when an operation is attempted which is not allowed.
- Extends:
I18nError
UnauthorizedError
This error should be thrown when the user's authentication credentials do not match.
- Extends:
I18nError
ForbiddenError
This error should be thrown when a user attempts to access a resource which is outside of his or her privileges.
- Extends:
I18nError
ChannelNotFoundError
This error should be thrown when a Channel cannot be found based on the provided channel token.
- Extends:
I18nError
EntityNotFoundError
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
Was this chapter helpful?