Exception: Caesars::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/caesars/exceptions.rb

Direct Known Subclasses

SyntaxError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#backtraceObject

Returns the value of attribute backtrace.



5
6
7
# File 'lib/caesars/exceptions.rb', line 5

def backtrace
  @backtrace
end

Instance Method Details

#messageObject



7
# File 'lib/caesars/exceptions.rb', line 7

def message; "#{self.class}: #{@obj}"; end