Exception: Trello::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Trello::Error
- Defined in:
- lib/trello/error.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status_code = nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/trello/error.rb', line 6 def initialize(, status_code=nil) @status_code = status_code super() end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
4 5 6 |
# File 'lib/trello/error.rb', line 4 def status_code @status_code end |