Exception: Lore::Exceptions::Unknown_Type

Inherits:
Exception
  • Object
show all
Defined in:
lib/lore/exceptions/unknown_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_code, value) ⇒ Unknown_Type

Returns a new instance of Unknown_Type.



9
10
11
12
13
# File 'lib/lore/exceptions/unknown_type.rb', line 9

def initialize(type_code, value)
  @code  = type_code
  @value = value
  @message = "Unknown database type: #{type_code.to_s} for value #{value.inspect}"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/lore/exceptions/unknown_type.rb', line 7

def code
  @code
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/lore/exceptions/unknown_type.rb', line 7

def value
  @value
end