Exception: TeamdriveApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- TeamdriveApi::Error
- Defined in:
- lib/teamdrive_api/error.rb
Overview
An exception raised by the TeamDrive API
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#secondarycode ⇒ Object
readonly
Returns the value of attribute secondarycode.
Instance Method Summary collapse
-
#initialize(code, secondarycode, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, secondarycode, message) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 |
# File 'lib/teamdrive_api/error.rb', line 5 def initialize(code, secondarycode, ) super @code = code @secondarycode = secondarycode @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/teamdrive_api/error.rb', line 4 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/teamdrive_api/error.rb', line 4 def @message end |
#secondarycode ⇒ Object (readonly)
Returns the value of attribute secondarycode.
4 5 6 |
# File 'lib/teamdrive_api/error.rb', line 4 def secondarycode @secondarycode end |