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

- (Error) initialize(msg)



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

- (Object) error_number 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

- (Object) sql_state

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