Exception: Cufinder::ApiError
- Defined in:
- lib/cufinder_ruby/errors.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(status, message) ⇒ ApiError
Returns a new instance of ApiError.
10 11 12 13 14 |
# File 'lib/cufinder_ruby/errors.rb', line 10 def initialize(status, ) @status = status @message = super("API Error #{status}: #{}") end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/cufinder_ruby/errors.rb', line 8 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/cufinder_ruby/errors.rb', line 8 def status @status end |