Exception: SQLite3::Exception

Inherits:
Exception
  • Object
show all
Defined in:
lib/sqlite3/errors.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.codeObject

The numeric error code that this exception represents.



41
42
43
# File 'lib/sqlite3/errors.rb', line 41

def self.code
  @code
end

Instance Method Details

#codeObject

A convenience for accessing the error code for this exception.



46
47
48
# File 'lib/sqlite3/errors.rb', line 46

def code
  self.class.code
end