Exception: TeamworkApi::Error
- Inherits:
-
TeamworkError
- Object
- StandardError
- TeamworkError
- TeamworkApi::Error
- Defined in:
- lib/teamwork_api/error.rb
Instance Attribute Summary collapse
-
#wrapped_exception ⇒ Object
readonly
Returns the value of attribute wrapped_exception.
Attributes inherited from TeamworkError
Instance Method Summary collapse
-
#initialize(exception = $!) ⇒ TeamworkApi::Error
constructor
Initializes a new Error object.
Constructor Details
#initialize(exception = $!) ⇒ TeamworkApi::Error
Initializes a new Error object
18 19 20 21 22 23 24 25 |
# File 'lib/teamwork_api/error.rb', line 18 def initialize(exception = $!) @wrapped_exception = exception if exception.respond_to?(:message) super(exception.) else super(exception.to_s) end end |
Instance Attribute Details
#wrapped_exception ⇒ Object (readonly)
Returns the value of attribute wrapped_exception.
12 13 14 |
# File 'lib/teamwork_api/error.rb', line 12 def wrapped_exception @wrapped_exception end |