Exception: SeaFood::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, params = {}) ⇒ Error

Returns a new instance of Error.



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

def initialize(message, params = {})
  @result = params[:result]
  super(message)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



3
4
5
# File 'lib/sea_food/error.rb', line 3

def result
  @result
end