Exception: Lore::Exceptions::Unknown_Type
- Defined in:
- lib/lore/exceptions/unknown_type.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(type_code, value) ⇒ Unknown_Type
constructor
A new instance of Unknown_Type.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/lore/exceptions/unknown_type.rb', line 7 def code @code end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/lore/exceptions/unknown_type.rb', line 7 def value @value end |