Module: Strutta::Errors
- Defined in:
- lib/strutta-api/errors.rb
Overview
Strutta Wrapper Errors
Defined Under Namespace
Classes: BadRequestError, DisabledEndpointError, Error, InvalidSearchParameters, ObjectIDNotAllowed, ObjectIDRequired, ObjectNotFoundError, Unauthorized, UnprocessableEntityError
Constant Summary collapse
- GAME_ID_REQUIRED =
Game ID is required for .get, .update, .delete
'Game ID required'- ROUND_ID_REQUIRED =
Round ID is required for .get, .update, .delete
'Round ID required'- PARTICIPANT_ID_REQUIRED =
Participant ID is required for .get, .update, .delete
'Participant ID required'- ENTRY_ID_REQUIRED =
Entry ID is required for .get, .update, .delete
'Entry ID required'- OBJECT_NOT_ALLOWED =
ID is not allowed for some methods
'This method may not have an ID associated with it. Example: strutta.games.entries.all instead of strutta.games.entries(ENTRY_ID).all'- INVALID_SEARCH =
ID is not allowed for some methods
'This version of the API only support searching by email'- METHOD_DISABLED =
Some http verbs are disabled for object, tell the user nicely
'This method is disabled for this object type'