Exception: Mysql2::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Mysql2::Error
- Defined in:
- lib/mysql2/error.rb
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.
5 6 7 8 9 |
# File 'lib/mysql2/error.rb', line 5 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.
3 4 5 |
# File 'lib/mysql2/error.rb', line 3 def error_number @error_number end |
#sql_state ⇒ Object
Returns the value of attribute sql_state.
3 4 5 |
# File 'lib/mysql2/error.rb', line 3 def sql_state @sql_state end |