class

Medium::Error

Inherits Exception / Reference / Object

Constants

VALID_TYPES = ["text/json", "application/json"]

Constructors

new(response : HTTP::Client::Response = nil)
Source

Class methods

from_response(response : HTTP::Client::Response)
Source
json(response)
Source

Instance methods

build_error_message
Source
response_error
Source