Module: JadeSql::SqlErrors

Defined in:
lib/jade-sql.rb

Constant Summary collapse

NOT_FOUND =
["NotFound"].freeze
NOT_UNIQUE =
["NotUnique"].freeze

Class Method Summary collapse

Class Method Details

.db_error(msg) ⇒ Object



17
# File 'lib/jade-sql.rb', line 17

def self.db_error(msg) = ["DbError", msg]

.not_foundObject



18
# File 'lib/jade-sql.rb', line 18

def self.not_found     = NOT_FOUND

.not_uniqueObject



19
# File 'lib/jade-sql.rb', line 19

def self.not_unique    = NOT_UNIQUE