Exception: Mysql::Error
- Inherits:
-
Exception
- Object
- Exception
- Mysql::Error
- Defined in:
- lib/ffi-mysql/error.rb
Instance Attribute Summary collapse
-
#errno ⇒ Object
readonly
Returns the value of attribute errno.
Instance Method Summary collapse
-
#initialize(msg = nil, errno = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = nil, errno = nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/ffi-mysql/error.rb', line 6 def initialize(msg = nil, errno = nil) super msg @errno = errno end |
Instance Attribute Details
#errno ⇒ Object (readonly)
Returns the value of attribute errno.
4 5 6 |
# File 'lib/ffi-mysql/error.rb', line 4 def errno @errno end |