Module: DList::Errors
- Defined in:
- lib/dblista/errors.rb
Overview
Error messages
Constant Summary collapse
- ID_NEEDED =
Raised when ID is not provided
'You need to enter ID'
- PAGE_INTEGER =
Raised when provided page is not an integer
'Page must be an integer'
- RANK_INTEGER =
Raised when rank is not an integer
'Rank must be an integer'
- LIMIT_INTEGER =
Raised when provided limit is not an integer
'Limit must be an integer'
- TOKEN_NOT_PROVIDED =
Raised when token is not provided
'Token is not provided'
- TYPE_NOT_ALLOWED =
Raised when type symbol is invalid
'Only bot and server types are allowed'
- QUERY_NOT_PROVIDED =
Raised wheen search query is not provided
'Search query is not provided'
- BODY_HASH =
Raised when body is not a hash
'Body must be a hash'
- INVALID_TOKEN =
Raised when token is invalid or expired
'Invalid or expired token'