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.5 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.5.rc1 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.4 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.4.rc1 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.2.0.rc2 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.2.0.rc1 lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.7 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.6 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.5 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.4 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.3 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
dirty_history-0.4.2 dirty_history/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.1.3 lib/active_record/railties/jdbcmysql_error.rb