Exception: Bitly::V4::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Bitly::V4::Error
- Defined in:
- lib/bitly/v4/error.rb
Overview
Error class.
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status, message) ⇒ Error
Returns a new instance of Error.
9 10 11 12 |
# File 'lib/bitly/v4/error.rb', line 9 def initialize(status, ) @status = status super("#{@status} - #{}") end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/bitly/v4/error.rb', line 7 def status @status end |