Exception: SQLite3::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sqlite3/constants.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.codeObject

The numeric error code that this exception represents.



38
39
40
# File 'lib/sqlite3/constants.rb', line 38

def self.code
  @code
end

Instance Method Details

#codeObject

A convenience for accessing the error code for this exception.



43
44
45
# File 'lib/sqlite3/constants.rb', line 43

def code
  self.class.code
end