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.



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



29
30
31
# File 'lib/teradata-cli/connection.rb', line 29

def code
  @code
end

#infoObject (readonly)

Returns the value of attribute info.



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

def info
  @info
end