Class: TeradataCli::SQLError

Inherits:
CLIError
  • Object
show all
Defined in:
lib/teradata-cli/connection.rb

Direct Known Subclasses

UserAbort

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, info, message) ⇒ SQLError

Returns a new instance of SQLError.



25
26
27
28
29
# File 'lib/teradata-cli/connection.rb', line 25

def initialize(code, info, message)
  super message
  @code = code
  @info = info
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



31
32
33
# File 'lib/teradata-cli/connection.rb', line 31

def code
  @code
end

#infoObject (readonly)

Returns the value of attribute info.



32
33
34
# File 'lib/teradata-cli/connection.rb', line 32

def info
  @info
end