Exception: Nimbu::Error::NimbuError
- Inherits:
-
StandardError
- Object
- StandardError
- Nimbu::Error::NimbuError
- Extended by:
- Utils::Descendants
- Defined in:
- lib/nimbu-api/errors.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 = $!) ⇒ NimbuError
constructor
Initialize a new Nimbu error object.
Methods included from Utils::Descendants
Constructor Details
#initialize(message = $!) ⇒ NimbuError
Initialize a new Nimbu error object.
12 13 14 15 16 17 18 19 |
# File 'lib/nimbu-api/errors.rb', line 12 def initialize(=$!) if .respond_to?(:backtrace) super(.) = else super(.to_s) end end |
Instance Attribute Details
#response_headers ⇒ Object (readonly)
Returns the value of attribute response_headers.
8 9 10 |
# File 'lib/nimbu-api/errors.rb', line 8 def response_headers @response_headers end |
#response_message ⇒ Object (readonly)
Returns the value of attribute response_message.
8 9 10 |
# File 'lib/nimbu-api/errors.rb', line 8 def end |
Instance Method Details
#backtrace ⇒ Object
21 22 23 |
# File 'lib/nimbu-api/errors.rb', line 21 def backtrace ? .backtrace : super end |