Sha256: 564d28da8f81b3ce59a24e2ff1f9cba950a448e249ba62e211cf6e533884c182

Contents?: true

Size: 343 Bytes

Versions: 57

Compression:

Stored size: 343 Bytes

Contents

#FIXME Remove if ArJdbcMysql will give.
module ArJdbcMySQL
  class Error < StandardError
    attr_accessor :error_number, :sql_state

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

    # Mysql gem compatibility
    alias_method :errno, :error_number
    alias_method :error, :message
  end
end

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
activerecord-3.1.12 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.11 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.10 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.9 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.8 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.7 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.6 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb