Exception: Ruleby::Core::ProcessInvocationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/core/utils.rb

Overview

Appearently Ruby doesn’t have any kind of Exception chaining. So this class will have fill the gap for Ruleby.

Instance Method Summary collapse

Constructor Details

#initialize(root_cause) ⇒ ProcessInvocationError

Returns a new instance of ProcessInvocationError.



25
26
27
# File 'lib/core/utils.rb', line 25

def initialize(root_cause)
  @root_cause = root_cause
end

Instance Method Details

#backtraceObject



29
30
31
# File 'lib/core/utils.rb', line 29

def backtrace
  @root_cause.backtrace
end

#inspectObject



33
34
35
# File 'lib/core/utils.rb', line 33

def inspect
  @root_cause.inspect
end

#to_sObject



37
38
39
# File 'lib/core/utils.rb', line 37

def to_s
  @root_cause.to_s
end