Exception: CarryOut::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, details = nil) ⇒ Error

Returns a new instance of Error.



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

def initialize(message, details = nil)
  super message
  @details = details
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



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

def details
  @details
end