Exception: Caesars::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Caesars::Error
- Defined in:
- lib/caesars/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
Instance Method Summary collapse
-
#initialize(obj = nil) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(obj = nil) ⇒ Error
Returns a new instance of Error.
6 |
# File 'lib/caesars/exceptions.rb', line 6 def initialize(obj=nil); @obj = obj; end |
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace.
5 6 7 |
# File 'lib/caesars/exceptions.rb', line 5 def backtrace @backtrace end |
Instance Method Details
#message ⇒ Object
7 |
# File 'lib/caesars/exceptions.rb', line 7 def ; "#{self.class}: #{@obj}"; end |