Exception: Lore::Exception::Unknown_Typecode

Inherits:
Exception
  • Object
show all
Defined in:
lib/lore/exception/unknown_typecode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_code) ⇒ Unknown_Typecode

Returns a new instance of Unknown_Typecode.



9
10
11
12
13
14
# File 'lib/lore/exception/unknown_typecode.rb', line 9

def initialize(_code)
  
  @code = _code
  @message = 'Unknown PGSQL type: ' + _code.to_s
  
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/lore/exception/unknown_typecode.rb', line 7

def code
  @code
end