struct

Crig::Model::ModelListingError

Inherits JSON::Serializable < Struct < Value < Object

Constants

RESPONSE_BODY_PREVIEW_LIMIT = 2048

Constructors

api_error(status_code : Int32, message : String) : self
Source
api_error_with_context(provider : String, path : String, status_code : Int32, body : Bytes) : self
Source
auth_error(message : String) : self
Source
new(kind : Kind, message : String, status_code : Int32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
parse_error(message : String) : self
Source
parse_error_with_context(provider : String, path : String, parse_error : String, body : Bytes) : self
Source
rate_limit_error(message : String) : self
Source
request_error(message : String) : self
Source
service_unavailable(message : String) : self
Source
unknown_error(message : String) : self
Source

Class methods

format_response_body_preview(body : Bytes) : String
Source

Instance methods

kind
Source
message
Source
status_code
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source

Nested types