Exception: ArJdbcMySQL::Error
- Defined in:
- activerecord/lib/active_record/railties/jdbcmysql_error.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#error_number ⇒ Object
(also: #errno)
Returns the value of attribute error_number.
-
#sql_state ⇒ Object
Returns the value of attribute sql_state.
Instance Method Summary collapse
-
#initialize(msg) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 |
# File 'activerecord/lib/active_record/railties/jdbcmysql_error.rb', line 6 def initialize msg super @error_number = nil @sql_state = nil end |
Instance Attribute Details
#error_number ⇒ Object Also known as: errno
Returns the value of attribute error_number
4 5 6 |
# File 'activerecord/lib/active_record/railties/jdbcmysql_error.rb', line 4 def error_number @error_number end |
#sql_state ⇒ Object
Returns the value of attribute sql_state
4 5 6 |
# File 'activerecord/lib/active_record/railties/jdbcmysql_error.rb', line 4 def sql_state @sql_state end |