2 require_once(
'exception.ilDatabaseException.php');
29 $message =
'An undefined Exception occured';
31 case static::DB_ATOM_GENERAL:
32 $message =
'An undefined exception in ilAtomQuery has occured';
34 case static::DB_ATOM_LOCK_TABLE_NONEXISTING:
35 $message =
'Table locks only work with existing tables';
37 case static::DB_ATOM_LOCK_WRONG_LEVEL:
38 $message =
'The current Isolation-level does not support the desired lock-level. use ilAtomQuery::LOCK_READ or ilAtomQuery::LOCK_WRITE';
40 case static::DB_ATOM_CLOSURE_WRONG_FORMAT:
41 $message =
'Please provide a Closure with your database-actions by adding with ilAtomQuery->addQueryClosure(function($ilDB) use ($my_vars) { $ilDB->doStuff(); });';
43 case static::DB_ATOM_ISO_WRONG_LEVEL:
44 $message =
'This isolation-level is currently unsupported';
46 case static::DB_ATOM_ANO_NOT_AVAILABLE:
49 case static::DB_ATOM_LOCK_NO_TABLE:
50 $message =
'ilAtomQuery needs at least one table to be locked';
52 case static::DB_ATOM_CLOSURE_NONE:
53 $message =
'There is no Closure available';
55 case static::DB_ATOM_CLOSURE_ALREADY_SET:
56 $message =
'Only one Closure per ilAtomQuery is possible';
58 case static::DB_ATOM_IDENTICAL_TABLES:
59 $message =
'A Table and/or alias-name can only be locked once';
63 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
catch(Exception $e) $message
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