struct

Fetcher::Error

Inherits Struct < Value < Object

Constructors

dns(message : String, url : String | Nil = nil) : Error
Source
http(status_code : Int32, message : String | Nil = nil, url : String | Nil = nil) : Error
Source
invalid_format(message : String, url : String | Nil = nil) : Error
Source
invalid_url(message : String = "Invalid URL", url : String | Nil = nil) : Error
Source
missing_location_header(message : String, url : String | Nil = nil) : Error
Source
new(kind : ErrorKind, message : String, status_code : Int32 | Nil = nil, url : String | Nil = nil, driver : String | Nil = nil)
Source
rate_limited(message : String = "Rate limited", url : String | Nil = nil) : Error
Source
server_error(status_code : Int32, message : String | Nil = nil, url : String | Nil = nil) : Error
Source
timeout(message : String, url : String | Nil = nil) : Error
Source
too_large(size : Int64, max_size : Int64, url : String | Nil = nil) : Error
Source
unknown(message : String, url : String | Nil = nil) : Error
Source

Instance methods

clone
Source
copy_with(kind _kind = @kind, message _message = @message, status_code _status_code = @status_code, url _url = @url, driver _driver = @driver)
Source
driver
kind
message
status_code
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
url