ILIAS  release_8 Revision v8.23
ilAtomQueryException Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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, Throwable $previous=null)
 A code isn't optional as in build in class Exception. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilAtomQueryException

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

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

Member Function Documentation

◆ tranlateException()

ilAtomQueryException::tranlateException ( int  $code)
protected

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

References $message.

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

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: