Exception: Mysql2::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mysql2/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
# File 'lib/mysql2/error.rb', line 5

def initialize msg
  super
  @error_number = nil
  @sql_state    = nil
end

Instance Attribute Details

#error_numberObject

Returns the value of attribute error_number.



3
4
5
# File 'lib/mysql2/error.rb', line 3

def error_number
  @error_number
end

#sql_stateObject

Returns the value of attribute sql_state.



3
4
5
# File 'lib/mysql2/error.rb', line 3

def sql_state
  @sql_state
end