ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAtomQueryException Class Reference

Class ilAtomQueryException. More...

+ Inheritance diagram for ilAtomQueryException:
+ Collaboration diagram for ilAtomQueryException:

Data Fields

const DB_ATOM_GENERAL = 10900
 
const DB_ATOM_LOCK_TABLE_NONEXISTING = 10901
 
const DB_ATOM_LOCK_WRONG_LEVEL = 10902
 
const DB_ATOM_CLOSURE_WRONG_FORMAT = 10903
 
const DB_ATOM_ISO_WRONG_LEVEL = 10904
 
const DB_ATOM_ANO_NOT_AVAILABLE = 10905
 
const DB_ATOM_LOCK_NO_TABLE = 10906
 
const DB_ATOM_CLOSURE_NONE = 10907
 
const DB_ATOM_CLOSURE_ALREADY_SET = 10908
 
const DB_ATOM_IDENTICAL_TABLES = 10909
 
- Data Fields inherited from ilDatabaseException
const DB_GENERAL = 10000
 

Protected Member Functions

 tranlateException (int $code)
 
- Protected Member Functions inherited from ilDatabaseException
 tranlateException (int $code)
 

Additional Inherited Members

- Public Member Functions inherited from ilDatabaseException
 __construct (string $a_message, int $a_code=self::DB_GENERAL)
 
- Public Member Functions inherited from ilException
 __construct ($a_message, $a_code=0)
 A code isn't optional as in build in class Exception. More...
 

Detailed Description

Member Function Documentation

◆ tranlateException()

ilAtomQueryException::tranlateException ( int  $code)
protected

Definition at line 41 of file exception.ilAtomQueryException.php.

References $message.

41  : string
42  {
43  $message = 'An undefined Exception occured';
44  switch ($code) {
45  case static::DB_ATOM_GENERAL:
46  $message = 'An undefined exception in ilAtomQuery has occured';
47  break;
48  case static::DB_ATOM_LOCK_TABLE_NONEXISTING:
49  $message = 'Table locks only work with existing tables';
50  break;
51  case static::DB_ATOM_LOCK_WRONG_LEVEL:
52  $message = 'The current Isolation-level does not support the desired lock-level. use ilAtomQuery::LOCK_READ or ilAtomQuery::LOCK_WRITE';
53  break;
54  case static::DB_ATOM_CLOSURE_WRONG_FORMAT:
55  $message = 'Please provide a Closure with your database-actions by adding with ilAtomQuery->addQueryClosure(function($ilDB) use ($my_vars) { $ilDB->doStuff(); });';
56  break;
57  case static::DB_ATOM_ISO_WRONG_LEVEL:
58  $message = 'This isolation-level is currently unsupported';
59  break;
60  case static::DB_ATOM_ANO_NOT_AVAILABLE:
61  $message = 'Anomaly not available';
62  break;
63  case static::DB_ATOM_LOCK_NO_TABLE:
64  $message = 'ilAtomQuery needs at least one table to be locked';
65  break;
66  case static::DB_ATOM_CLOSURE_NONE:
67  $message = 'There is no Closure available';
68  break;
69  case static::DB_ATOM_CLOSURE_ALREADY_SET:
70  $message = 'Only one Closure per ilAtomQuery is possible';
71  break;
72  case static::DB_ATOM_IDENTICAL_TABLES:
73  $message = 'A Table and/or alias-name can only be locked once';
74  break;
75  }
76 
77  return 'ilAtomQuery: ' . $message . '. ';
78  }
$message
Definition: xapiexit.php:31

Field Documentation

◆ DB_ATOM_ANO_NOT_AVAILABLE

const ilAtomQueryException::DB_ATOM_ANO_NOT_AVAILABLE = 10905

Definition at line 33 of file exception.ilAtomQueryException.php.

Referenced by ilAtomQueryBase\checkAnomaly().

◆ DB_ATOM_CLOSURE_ALREADY_SET

const ilAtomQueryException::DB_ATOM_CLOSURE_ALREADY_SET = 10908

Definition at line 36 of file exception.ilAtomQueryException.php.

Referenced by ilAtomQueryBase\addQueryCallable().

◆ DB_ATOM_CLOSURE_NONE

const ilAtomQueryException::DB_ATOM_CLOSURE_NONE = 10907

Definition at line 35 of file exception.ilAtomQueryException.php.

Referenced by ilAtomQueryBase\checkQueries().

◆ DB_ATOM_CLOSURE_WRONG_FORMAT

const ilAtomQueryException::DB_ATOM_CLOSURE_WRONG_FORMAT = 10903

◆ DB_ATOM_GENERAL

const ilAtomQueryException::DB_ATOM_GENERAL = 10900

Definition at line 28 of file exception.ilAtomQueryException.php.

◆ DB_ATOM_IDENTICAL_TABLES

const ilAtomQueryException::DB_ATOM_IDENTICAL_TABLES = 10909

◆ DB_ATOM_ISO_WRONG_LEVEL

const ilAtomQueryException::DB_ATOM_ISO_WRONG_LEVEL = 10904

◆ DB_ATOM_LOCK_NO_TABLE

const ilAtomQueryException::DB_ATOM_LOCK_NO_TABLE = 10906

Definition at line 34 of file exception.ilAtomQueryException.php.

Referenced by ilAtomQueryBase\checkBeforeRun().

◆ DB_ATOM_LOCK_TABLE_NONEXISTING

const ilAtomQueryException::DB_ATOM_LOCK_TABLE_NONEXISTING = 10901

Definition at line 29 of file exception.ilAtomQueryException.php.

Referenced by ilTableLock\check().

◆ DB_ATOM_LOCK_WRONG_LEVEL

const ilAtomQueryException::DB_ATOM_LOCK_WRONG_LEVEL = 10902

The documentation for this class was generated from the following file: