class Srcom::CodeException
- Srcom::CodeException
- Srcom::StatusException
- Exception
- Reference
- Object
Overview
This exception is raised in Api#request
and Api#request_single_item
when a request fails with
an API error response that has a descriptive message and support links.
Defined in:
srcr/exceptions.crConstructors
Instance Method Summary
- #error : APIError
-
#error_message : String
The API error message that was returned by Srcom, for example "Game
could not be found" or "The submitted run does not validate against the schema. - #message
- #to_s(io)
Instance methods inherited from class Srcom::StatusException
message
message,
response : HTTP::Client::Response
response,
status_code : Int32
status_code,
status_message : String
status_message,
to_s(io)
to_s
Constructor methods inherited from class Srcom::StatusException
new(response : HTTP::Client::Response)
new
Constructor Detail
Instance Method Detail
def error_message : String
#
The API error message that was returned by Srcom, for example "Game errors
attached.".