Exception: PolarLoop::ContractRevertError

Inherits:
Error
  • Object
show all
Defined in:
lib/polarloop/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ ContractRevertError

Returns a new instance of ContractRevertError.



23
24
25
26
# File 'lib/polarloop/errors.rb', line 23

def initialize(reason)
  @reason = reason
  super("Contract reverted: #{reason}")
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



21
22
23
# File 'lib/polarloop/errors.rb', line 21

def reason
  @reason
end