2 require_once(
'exception.ilDatabaseException.php');
28 $message =
'An undefined Exception occured';
30 case static::DB_ATOM_GENERAL:
31 $message =
'An undefined exception in ilAtomQuery has occured';
33 case static::DB_ATOM_LOCK_TABLE_NONEXISTING:
34 $message =
'Table locks only work with existing tables';
36 case static::DB_ATOM_LOCK_WRONG_LEVEL:
37 $message =
'The current Isolation-level does not support the desired lock-level. use ilAtomQuery::LOCK_READ or ilAtomQuery::LOCK_WRITE';
39 case static::DB_ATOM_CLOSURE_WRONG_FORMAT:
40 $message =
'Please provide a Closure with your database-actions by adding with ilAtomQuery->addQueryClosure(function($ilDB) use ($my_vars) { $ilDB->doStuff(); });';
42 case static::DB_ATOM_ISO_WRONG_LEVEL:
43 $message =
'This isolation-level is currently unsupported';
45 case static::DB_ATOM_ANO_NOT_AVAILABLE:
46 $message =
'Anomaly not available';
48 case static::DB_ATOM_LOCK_NO_TABLE:
49 $message =
'ilAtomQuery needs at least one table to be locked';
51 case static::DB_ATOM_CLOSURE_NONE:
52 $message =
'There is no Closure available';
54 case static::DB_ATOM_CLOSURE_ALREADY_SET:
55 $message =
'Only one Closure per ilAtomQuery is possible';
57 case static::DB_ATOM_IDENTICAL_TABLES:
58 $message =
'A Table and/or alias-name can only be locked once';
62 return 'ilAtomQuery: ' . $message .
'. ';
const DB_ATOM_CLOSURE_NONE
const DB_ATOM_LOCK_TABLE_NONEXISTING
const DB_ATOM_LOCK_WRONG_LEVEL
Class ilDatabaseException.
const DB_ATOM_CLOSURE_WRONG_FORMAT
Class ilAtomQueryException.
const DB_ATOM_CLOSURE_ALREADY_SET
const DB_ATOM_ISO_WRONG_LEVEL
const DB_ATOM_LOCK_NO_TABLE
const DB_ATOM_ANO_NOT_AVAILABLE
const DB_ATOM_IDENTICAL_TABLES