Class: Ruleby::Core::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/core/engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, level, details = {}) ⇒ Error

Returns a new instance of Error.



193
194
195
196
197
# File 'lib/core/engine.rb', line 193

def initialize(type, level, details={})
  @type = type
  @details = details
  @level = level
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



191
192
193
# File 'lib/core/engine.rb', line 191

def details
  @details
end

#levelObject (readonly)

Returns the value of attribute level.



191
192
193
# File 'lib/core/engine.rb', line 191

def level
  @level
end

#typeObject (readonly)

Returns the value of attribute type.



191
192
193
# File 'lib/core/engine.rb', line 191

def type
  @type
end