Sha256: f1b065605e1fb52a21cfa217cb7937d347b4c5b496944b38771ab3b3b7897573

Contents?: true

Size: 298 Bytes

Versions: 68

Compression:

Stored size: 298 Bytes

Contents

module Mysql2
  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

68 entries across 68 versions & 7 rubygems

Version Path
mysql2-0.2.21 lib/mysql2/error.rb
mysql2-0.3.14 lib/mysql2/error.rb
mysql2-0.3.13 lib/mysql2/error.rb
mysql2-0.2.20 lib/mysql2/error.rb
mysql2-0.3.12 lib/mysql2/error.rb
mysql2-0.2.19 lib/mysql2/error.rb
mysql2-0.3.12b6 lib/mysql2/error.rb
mysql2-0.2.19b6 lib/mysql2/error.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/error.rb
mysql2-0.2.19b5 lib/mysql2/error.rb
mysql2-0.3.12b5 lib/mysql2/error.rb
mysql2-0.2.19b4 lib/mysql2/error.rb
mysql2-0.3.12b4 lib/mysql2/error.rb
mysql2-0.2.19b3 lib/mysql2/error.rb
mysql2-0.3.12b3 lib/mysql2/error.rb
mysql2-0.3.12b2 lib/mysql2/error.rb
mysql2-0.2.19b2 lib/mysql2/error.rb
mysql2-0.3.12b1 lib/mysql2/error.rb
mysql2-0.2.19b1 lib/mysql2/error.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/error.rb