Exception: Yes::Core::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, extra: nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/yes/core/error.rb', line 8

def initialize(message = nil, extra: nil)
  super(message)
  @extra = extra
end

Instance Attribute Details

#extraObject (readonly)

Returns the value of attribute extra.



6
7
8
# File 'lib/yes/core/error.rb', line 6

def extra
  @extra
end