Exception: Rack::Idempotent::HTTPException
- Inherits:
-
StandardError
- Object
- StandardError
- Rack::Idempotent::HTTPException
- Defined in:
- lib/rack-idempotent/http_exception.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, headers, body, request) ⇒ HTTPException
constructor
A new instance of HTTPException.
- #to_s ⇒ Object
Constructor Details
#initialize(status, headers, body, request) ⇒ HTTPException
Returns a new instance of HTTPException.
3 4 5 |
# File 'lib/rack-idempotent/http_exception.rb', line 3 def initialize(status, headers, body, request) @status, @headers, @body, @request = status, headers, body, request end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
2 3 4 |
# File 'lib/rack-idempotent/http_exception.rb', line 2 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
2 3 4 |
# File 'lib/rack-idempotent/http_exception.rb', line 2 def headers @headers end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
2 3 4 |
# File 'lib/rack-idempotent/http_exception.rb', line 2 def request @request end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
2 3 4 |
# File 'lib/rack-idempotent/http_exception.rb', line 2 def status @status end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/rack-idempotent/http_exception.rb', line 7 def to_s @status.to_s end |