Exception: TBK::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tbk/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, origin = nil) ⇒ Error

Returns a new instance of Error.



4
5
6
7
# File 'lib/tbk/errors.rb', line 4

def initialize(msg, origin=nil)
  super(msg)
  @origin = origin
end

Instance Attribute Details

#originObject (readonly)

Returns the value of attribute origin.



3
4
5
# File 'lib/tbk/errors.rb', line 3

def origin
  @origin
end