Exception: Mysql2::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Mysql2::Error
- Defined in:
- lib/mysql2/error.rb
Instance Attribute Summary (collapse)
-
- (Object) error_number
(also: #errno)
Returns the value of attribute error_number.
-
- (Object) sql_state
Returns the value of attribute sql_state.
Instance Method Summary (collapse)
-
- (Error) initialize(msg)
constructor
A new instance of Error.
Constructor Details
- (Error) initialize(msg)
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
- (Object) error_number 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 |
- (Object) sql_state
Returns the value of attribute sql_state
3 4 5 |
# File 'lib/mysql2/error.rb', line 3 def sql_state @sql_state end |