Exception: TeamworkApi::Error
- Inherits:
-
TeamworkError
- Object
- StandardError
- TeamworkError
- TeamworkApi::Error
- Defined in:
- lib/teamwork_api/error.rb
Overview
specific errors
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 = $ERROR_INFO) ⇒ TeamworkApi::Error
constructor
Initializes a new Error object.
Constructor Details
#initialize(exception = $ERROR_INFO) ⇒ TeamworkApi::Error
Initializes a new Error object
24 25 26 27 28 29 30 31 |
# File 'lib/teamwork_api/error.rb', line 24 def initialize(exception = $ERROR_INFO) @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.
18 19 20 |
# File 'lib/teamwork_api/error.rb', line 18 def wrapped_exception @wrapped_exception end |