ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
arException 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 arException:
+ Collaboration diagram for arException:

Public Member Functions

 __construct (protected $code=self::UNKNONWN_EXCEPTION, protected $additional_info='')
 
 __toString ()
 
- Public Member Functions inherited from ilException
 __construct ($a_message, $a_code=0)
 A code isn't optional as in build in class Exception. More...
 

Data Fields

const UNKNONWN_EXCEPTION = -1
 
const COLUMN_DOES_NOT_EXIST = 1001
 
const COLUMN_DOES_ALREADY_EXIST = 1002
 
const RECORD_NOT_FOUND = 1003
 
const GET_UNCACHED_OBJECT = 1004
 
const LIST_WRONG_LIMIT = 1005
 
const LIST_ORDER_BY_WRONG_FIELD = 1006
 
const LIST_JOIN_ON_WRONG_FIELD = 1007
 
const COPY_DESTINATION_ID_EXISTS = 1008
 
const PRIVATE_CONTRUCTOR = 1009
 
const FIELD_UNKNOWN = 1010
 

Protected Member Functions

 assignMessageToCode ()
 

Protected Attributes

 $message = ''
 

Static Protected Attributes

static array $message_strings
 

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 arException

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Timon Amstutz timon.nosp@m..ams.nosp@m.tutz@.nosp@m.ilub.nosp@m..unib.nosp@m.e.ch
Version
2.0.7

Definition at line 25 of file class.arException.php.

Constructor & Destructor Documentation

◆ __construct()

arException::__construct ( protected  $code = self::UNKNONWN_EXCEPTION,
protected  $additional_info = '' 
)
Parameters
int$code
string$additional_info

Definition at line 59 of file class.arException.php.

References ILIAS\GlobalScreen\Provider\__construct(), and assignMessageToCode().

60  {
61  $this->assignMessageToCode();
62  parent::__construct($this->message, $this->code);
63  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

arException::__toString ( )

Definition at line 70 of file class.arException.php.

70  : string
71  {
72  return implode('<br>', [static::class, $this->message]);
73  }

◆ assignMessageToCode()

arException::assignMessageToCode ( )
protected

Definition at line 65 of file class.arException.php.

Referenced by __construct().

65  : void
66  {
67  $this->message = 'ActiveRecord Exeption: ' . self::$message_strings[$this->code] . $this->additional_info;
68  }
+ Here is the caller graph for this function:

Field Documentation

◆ $message

arException::$message = ''
protected

Definition at line 53 of file class.arException.php.

◆ $message_strings

array arException::$message_strings
staticprotected
Initial value:
= [
self::UNKNONWN_EXCEPTION => 'Unknown Exception'

Definition at line 38 of file class.arException.php.

◆ COLUMN_DOES_ALREADY_EXIST

const arException::COLUMN_DOES_ALREADY_EXIST = 1002

Definition at line 29 of file class.arException.php.

◆ COLUMN_DOES_NOT_EXIST

const arException::COLUMN_DOES_NOT_EXIST = 1001

Definition at line 28 of file class.arException.php.

Referenced by arConnectorDB\removeField().

◆ COPY_DESTINATION_ID_EXISTS

const arException::COPY_DESTINATION_ID_EXISTS = 1008

Definition at line 35 of file class.arException.php.

Referenced by ActiveRecord\copy().

◆ FIELD_UNKNOWN

const arException::FIELD_UNKNOWN = 1010

Definition at line 37 of file class.arException.php.

◆ GET_UNCACHED_OBJECT

const arException::GET_UNCACHED_OBJECT = 1004

Definition at line 31 of file class.arException.php.

Referenced by arObjectCache\get().

◆ LIST_JOIN_ON_WRONG_FIELD

const arException::LIST_JOIN_ON_WRONG_FIELD = 1007

Definition at line 34 of file class.arException.php.

Referenced by ActiveRecordList\join().

◆ LIST_ORDER_BY_WRONG_FIELD

const arException::LIST_ORDER_BY_WRONG_FIELD = 1006

Definition at line 33 of file class.arException.php.

◆ LIST_WRONG_LIMIT

const arException::LIST_WRONG_LIMIT = 1005

Definition at line 32 of file class.arException.php.

◆ PRIVATE_CONTRUCTOR

const arException::PRIVATE_CONTRUCTOR = 1009

Definition at line 36 of file class.arException.php.

◆ RECORD_NOT_FOUND

const arException::RECORD_NOT_FOUND = 1003

Definition at line 30 of file class.arException.php.

Referenced by ActiveRecord\findOrFail(), and ActiveRecord\read().

◆ UNKNONWN_EXCEPTION

const arException::UNKNONWN_EXCEPTION = -1

Definition at line 27 of file class.arException.php.

Referenced by ActiveRecord\returnDbTableName().


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