Exception: Caesars::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Caesars::Error
- Defined in:
- lib/caesars.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.
96 |
# File 'lib/caesars.rb', line 96 def initialize(obj=nil); @obj = obj; end |
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace.
95 96 97 |
# File 'lib/caesars.rb', line 95 def backtrace @backtrace end |
Instance Method Details
#message ⇒ Object
97 |
# File 'lib/caesars.rb', line 97 def ; "#{self.class}: #{@obj}"; end |