Exception: Minisky::UnexpectedRedirect

Inherits:
BadResponse show all
Defined in:
lib/minisky/errors.rb

Instance Attribute Summary collapse

Attributes inherited from BadResponse

#data, #status

Instance Method Summary collapse

Methods inherited from BadResponse

#error_message, #error_type

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, status_message, location)
  super(status, status_message, { 'message' => "Unexpected redirect: #{location}" })
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



48
49
50
# File 'lib/minisky/errors.rb', line 48

def location
  @location
end