Exception: Excon::Error::HTTPStatus

Inherits:
Excon::Error
  • Object
show all
Defined in:
lib/excon/error.rb

Overview

Base class for HTTP Error classes

Direct Known Subclasses

Client, Informational, Redirection, Server, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Excon::Error

status_error, status_errors

Constructor Details

#initialize(msg, request = nil, response = nil) ⇒ HTTPStatus

Returns a new instance of HTTPStatus



59
60
61
62
63
# File 'lib/excon/error.rb', line 59

def initialize(msg, request = nil, response = nil)
  super(msg)
  @request = request
  @response = response
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request



57
58
59
# File 'lib/excon/error.rb', line 57

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response



57
58
59
# File 'lib/excon/error.rb', line 57

def response
  @response
end