ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilWACException 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 ilWACException:
+ Collaboration diagram for ilWACException:

Public Member Functions

 __construct ($code, $additional_message='')
 
 __construct ($a_message, $a_code=0)
 A code isn't optional as in build in class Exception. More...
 

Data Fields

const CODE_NO_TYPE = 9001
 
const CODE_NO_PATH = 9002
 
const ACCESS_WITHOUT_CHECK = 9003
 
const NO_CHECKING_INSTANCE = 9004
 
const WRONG_PATH_TYPE = 9005
 
const INITIALISATION_FAILED = 9006
 
const DATA_DIR_NON_WRITEABLE = 9007
 
const ACCESS_DENIED = 9010
 
const ACCESS_DENIED_NO_PUB = 9011
 
const ACCESS_DENIED_NO_LOGIN = 9012
 
const MAX_LIFETIME = 9013
 
const NOT_FOUND = 9014
 

Static Protected Attributes

static array $messages
 

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 ilWACException

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

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

Constructor & Destructor Documentation

◆ __construct()

ilWACException::__construct (   $code,
  $additional_message = '' 
)
Parameters
int$code
string$additional_message

Reimplemented from ilException.

Definition at line 62 of file class.ilWACException.php.

63 {
64 $message = self::$messages[$code] ?? 'Unknown error';
65 if (!empty($additional_message)) {
66 $message .= ': ' . $additional_message;
67 }
69 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$messages
Definition: xapiexit.php:21
$message
Definition: xapiexit.php:31

References $message, $messages, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Field Documentation

◆ $messages

array ilWACException::$messages
staticprotected
Initial value:
= [
self::CODE_NO_TYPE => 'No type for Path-Signing selected',
self::WRONG_PATH_TYPE => 'This path-type cannot be signed',
self::CODE_NO_PATH => 'No path for checking available',
self::ACCESS_WITHOUT_CHECK => 'Resource could not be found',
self::NO_CHECKING_INSTANCE => 'This path is not secured by a class',
self::ACCESS_DENIED => 'Resource could not be found',
self::ACCESS_DENIED_NO_PUB => 'Resource could not be found',
self::INITIALISATION_FAILED => 'An error occured during your request. Please reload the page.',
self::DATA_DIR_NON_WRITEABLE => 'The SALT cannot be written to your /data directory. Please check the write permissions on the webserver.',
self::MAX_LIFETIME => 'You can only only use lifetimes shorter than ilWACSignedPath::MAX_LIFETIME',
self::ACCESS_DENIED_NO_LOGIN => 'No Login found',
self::NOT_FOUND => 'Resource not Found',
]

Definition at line 42 of file class.ilWACException.php.

◆ ACCESS_DENIED

const ilWACException::ACCESS_DENIED = 9010

◆ ACCESS_DENIED_NO_LOGIN

const ilWACException::ACCESS_DENIED_NO_LOGIN = 9012

◆ ACCESS_DENIED_NO_PUB

const ilWACException::ACCESS_DENIED_NO_PUB = 9011

◆ ACCESS_WITHOUT_CHECK

const ilWACException::ACCESS_WITHOUT_CHECK = 9003

◆ CODE_NO_PATH

const ilWACException::CODE_NO_PATH = 9002

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

◆ CODE_NO_TYPE

const ilWACException::CODE_NO_TYPE = 9001

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

Referenced by ilWACSignedPath\buildTokenInstance().

◆ DATA_DIR_NON_WRITEABLE

const ilWACException::DATA_DIR_NON_WRITEABLE = 9007

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

Referenced by ilWACToken\generateSaltFile().

◆ INITIALISATION_FAILED

const ilWACException::INITIALISATION_FAILED = 9006

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

◆ MAX_LIFETIME

const ilWACException::MAX_LIFETIME = 9013

◆ NO_CHECKING_INSTANCE

const ilWACException::NO_CHECKING_INSTANCE = 9004

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

◆ NOT_FOUND

const ilWACException::NOT_FOUND = 9014

◆ WRONG_PATH_TYPE

const ilWACException::WRONG_PATH_TYPE = 9005

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

Referenced by ilWACSignedPath\getSignedPath().


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