Exception: Identikey::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/identikey/error.rb

Overview

Generic error class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error_stack = nil) ⇒ Error

Returns a new instance of Error.



4
5
6
7
8
# File 'lib/identikey/error.rb', line 4

def initialize(message, error_stack = nil)
  super(message)

  @error_stack = error_stack
end

Instance Attribute Details

#error_stackObject (readonly)

Returns the value of attribute error_stack.



10
11
12
# File 'lib/identikey/error.rb', line 10

def error_stack
  @error_stack
end