instance method
error_number
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
error_number(exception)
Must return the MySQL error number from the exception, if the exception has an error number.
Parameters
-
exceptionreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 966
def error_number(exception)
raise NotImplementedError
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb line 966
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter