Exception: AptControl::Jabber::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AptControl::Jabber::Error
- Defined in:
- lib/apt_control/jabber.rb
Overview
Thank you to rubyforge.org/projects/nestegg for the pattern
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
(also: #wrapped_error)
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(msg, cause = nil) ⇒ Error
constructor
A new instance of Error.
- #set_backtrace(bt) ⇒ Object
Constructor Details
#initialize(msg, cause = nil) ⇒ Error
Returns a new instance of Error.
142 143 144 145 |
# File 'lib/apt_control/jabber.rb', line 142 def initialize(msg, cause=nil) @cause = cause super(msg) end |
Instance Attribute Details
#cause ⇒ Object (readonly) Also known as: wrapped_error
Returns the value of attribute cause.
139 140 141 |
# File 'lib/apt_control/jabber.rb', line 139 def cause @cause end |
Instance Method Details
#set_backtrace(bt) ⇒ Object
147 148 149 150 151 152 153 |
# File 'lib/apt_control/jabber.rb', line 147 def set_backtrace(bt) if cause bt << "cause: #{cause.class.name}: #{cause}" bt.concat cause.backtrace end super(bt) end |