Exception: Structured::Errors::Base

Inherits:
StandardError
  • Object
show all
Defined in:
lib/structured/errors/base.rb

Direct Known Subclasses

InvalidValue, MissingKey, MultipleErrors, UnknownKey

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stack, message) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/structured/errors/base.rb', line 6

def initialize(stack, message)
  super(message)
  @stack = stack
end

Instance Attribute Details

#stackObject

Returns the value of attribute stack.



4
5
6
# File 'lib/structured/errors/base.rb', line 4

def stack
  @stack
end