Exception: Micky::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Micky::Error
- Defined in:
- lib/micky/errors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(message = nil, original_exception: nil, response: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, original_exception: nil, response: nil) ⇒ Error
Returns a new instance of Error.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/micky/errors.rb', line 3 def initialize( = nil, original_exception: nil, response: nil) if response super "#{response.code} #{response.} at #{response.uri}" elsif original_exception super original_exception.inspect elsif super else super end end |