Exception: ArJdbcMySQL::Error

Inherits:
StandardError
  • Object
show all
Defined in:
activerecord/lib/active_record/railties/jdbcmysql_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ Error

Returns a new instance of Error.



6
7
8
9
10
# File 'activerecord/lib/active_record/railties/jdbcmysql_error.rb', line 6

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

Instance Attribute Details

#error_numberObject Also known as: errno

Returns the value of attribute error_number



4
5
6
# File 'activerecord/lib/active_record/railties/jdbcmysql_error.rb', line 4

def error_number
  @error_number
end

#sql_stateObject

Returns the value of attribute sql_state



4
5
6
# File 'activerecord/lib/active_record/railties/jdbcmysql_error.rb', line 4

def sql_state
  @sql_state
end