Exception: ShadowLink::Error

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

Overview

Error is a custom error class that wraps an error raised in a shadow. It provides access to the error’s shadow object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ Error

Returns a new instance of Error.



9
10
11
12
13
# File 'lib/shadow_link/error.rb', line 9

def initialize(error)
  @shadow = error
  super(error.message)
  freeze
end

Instance Attribute Details

#shadowObject (readonly)

Returns the value of attribute shadow.



7
8
9
# File 'lib/shadow_link/error.rb', line 7

def shadow
  @shadow
end