Exception: Assembla::Error::AssemblaError
- Inherits:
-
StandardError
- Object
- StandardError
- Assembla::Error::AssemblaError
- Extended by:
- DescendantsTracker
- Defined in:
- lib/assembla_api/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response_headers ⇒ Object
readonly
Returns the value of attribute response_headers.
-
#response_message ⇒ Object
readonly
Returns the value of attribute response_message.
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(message = $!) ⇒ AssemblaError
constructor
Initialize a new Assembla error object.
Constructor Details
#initialize(message = $!) ⇒ AssemblaError
Initialize a new Assembla error object.
14 15 16 17 18 19 20 21 |
# File 'lib/assembla_api/error.rb', line 14 def initialize(=$!) if .respond_to?(:backtrace) super(.) @response_message = else super(.to_s) end end |
Instance Attribute Details
#response_headers ⇒ Object (readonly)
Returns the value of attribute response_headers.
10 11 12 |
# File 'lib/assembla_api/error.rb', line 10 def response_headers @response_headers end |
#response_message ⇒ Object (readonly)
Returns the value of attribute response_message.
10 11 12 |
# File 'lib/assembla_api/error.rb', line 10 def @response_message end |
Instance Method Details
#backtrace ⇒ Object
23 24 25 |
# File 'lib/assembla_api/error.rb', line 23 def backtrace @response_message ? @response_message.backtrace : super end |