Exception: Ruote::MetaError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruote/svc/error_handler.rb

Overview

For errors occuring when handling errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error) ⇒ MetaError

Returns a new instance of MetaError.



35
36
37
38
39
# File 'lib/ruote/svc/error_handler.rb', line 35

def initialize(message, error)

  super("#{message}: #{error.to_s}")
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



33
34
35
# File 'lib/ruote/svc/error_handler.rb', line 33

def error
  @error
end