Exception: TryThis

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbbt/util/misc/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload = nil) ⇒ TryThis

Returns a new instance of TryThis.



21
22
23
# File 'lib/rbbt/util/misc/exceptions.rb', line 21

def initialize(payload = nil)
  @payload = payload
end

Instance Attribute Details

#payloadObject

Returns the value of attribute payload.



20
21
22
# File 'lib/rbbt/util/misc/exceptions.rb', line 20

def payload
  @payload
end