method

error_number

rails latest stable - Class: ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter
error_number(exception)
public

Must return the MySQL error number from the exception, if the exception has an error number.