Exception: Mysql::Error

Inherits:
Exception
  • Object
show all
Defined in:
lib/ffi-mysql/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errnoObject (readonly)

Returns the value of attribute errno.



4
5
6
# File 'lib/ffi-mysql/error.rb', line 4

def errno
  @errno
end