Exception: PolyLingo::PolyLingoError
- Inherits:
-
StandardError
- Object
- StandardError
- PolyLingo::PolyLingoError
- Defined in:
- lib/polylingo/errors.rb
Overview
Base error for all PolyLingo API failures.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, error, message) ⇒ PolyLingoError
constructor
A new instance of PolyLingoError.
Constructor Details
#initialize(status, error, message) ⇒ PolyLingoError
Returns a new instance of PolyLingoError.
8 9 10 11 12 |
# File 'lib/polylingo/errors.rb', line 8 def initialize(status, error, ) super() @status = status @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/polylingo/errors.rb', line 6 def error @error end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/polylingo/errors.rb', line 6 def status @status end |