Exception: Fluffy::APIError
- Inherits:
-
Exception
- Object
- Exception
- Fluffy::APIError
- Defined in:
- lib/fluffy/exceptions.rb
Instance Attribute Summary collapse
-
#code ⇒ Integer
readonly
HTTP error code.
-
#error ⇒ String
readonly
Reason for error message.
Instance Method Summary collapse
-
#initialize(msg, error, code) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(msg, error, code) ⇒ APIError
Returns a new instance of APIError.
8 9 10 11 12 13 |
# File 'lib/fluffy/exceptions.rb', line 8 def initialize(msg, error, code) @code = code @error = error super(msg) end |
Instance Attribute Details
#code ⇒ Integer (readonly)
Returns HTTP error code.
4 5 6 |
# File 'lib/fluffy/exceptions.rb', line 4 def code @code end |
#error ⇒ String (readonly)
Returns Reason for error message.
6 7 8 |
# File 'lib/fluffy/exceptions.rb', line 6 def error @error end |