class SQLite3::Exception

def self.code

The numeric error code that this exception represents.
def self.code
  @code
end

def code

A convenience for accessing the error code for this exception.
def code
  self.class.code
end