Exception: Ree::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil, type = nil) ⇒ Error

Returns a new instance of Error.



6
7
8
9
10
# File 'lib/ree/error.rb', line 6

def initialize(message, code = nil, type = nil)
  super(message)
  @type = type
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/ree/error.rb', line 4

def code
  @code
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/ree/error.rb', line 4

def type
  @type
end