Exception: Minisky::UnexpectedRedirect
- Inherits:
-
BadResponse
- Object
- StandardError
- Error
- BadResponse
- Minisky::UnexpectedRedirect
- Defined in:
- lib/minisky/errors.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Attributes inherited from BadResponse
Instance Method Summary collapse
-
#initialize(status, status_message, location) ⇒ UnexpectedRedirect
constructor
A new instance of UnexpectedRedirect.
Methods inherited from BadResponse
Constructor Details
#initialize(status, status_message, location) ⇒ UnexpectedRedirect
Returns a new instance of UnexpectedRedirect.
50 51 52 53 |
# File 'lib/minisky/errors.rb', line 50 def initialize(status, , location) super(status, , { 'message' => "Unexpected redirect: #{location}" }) @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
48 49 50 |
# File 'lib/minisky/errors.rb', line 48 def location @location end |