class

Srcom::CodeException

Inherits Srcom::StatusException / Exception / Reference / Object

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.

Constructors

new(response : HTTP::Client::Response, error : APIError)
Source

Instance methods

error
Source
error_message

The API error message that was returned by Srcom, for example "Game <id> could not be found" or "The submitted run does not validate against the schema. See the errors attached.".

Source
message
Source
to_s(io)
Source