ILIAS  release_7 Revision v7.30-3-g800a261c036
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='', Throwable $previous=null)
 
 __construct ($a_message, $a_code=0, Throwable $previous=null)
 A message 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 $messages
 

Private Member Functions

 isNonEmptyString ($text)
 Checks if the given text is empty or not. 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 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 26 of file class.ilWACException.php.

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from ilException.

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

64 {
66
67 if ($this->isNonEmptyString($additional_message)) {
68 $message = "\"{$this->message}\" with additional message: \"$additional_message\"";
69 }
70 parent::__construct($message, $code, $previous);
71 }
isNonEmptyString($text)
Checks if the given text is empty or not.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$messages
Definition: xapiexit.php:5
$message
Definition: xapiexit.php:14

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

+ Here is the call graph for this function:

Member Function Documentation

◆ isNonEmptyString()

ilWACException::isNonEmptyString (   $text)
private

Checks if the given text is empty or not.

Parameters
string$textThe text which should be checked.
Returns
bool true if the string is not empty, otherwise false.

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

82 {
83 assert(is_string($text));
84
85 return strcmp($text, '') !== 0;
86 }

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $messages

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 43 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

◆ ACCESS_WITHOUT_CHECK

const ilWACException::ACCESS_WITHOUT_CHECK = 9003

◆ CODE_NO_PATH

const ilWACException::CODE_NO_PATH = 9002

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

Referenced by ilWebAccessChecker\check().

◆ CODE_NO_TYPE

const ilWACException::CODE_NO_TYPE = 9001

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

Referenced by ilWACSignedPath\buildTokenInstance().

◆ DATA_DIR_NON_WRITEABLE

const ilWACException::DATA_DIR_NON_WRITEABLE = 9007

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

Referenced by ilWACToken\generateSaltFile().

◆ INITIALISATION_FAILED

const ilWACException::INITIALISATION_FAILED = 9006

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

Referenced by ilWebAccessCheckerDelivery\handleRequest().

◆ MAX_LIFETIME

const ilWACException::MAX_LIFETIME = 9013

◆ NO_CHECKING_INSTANCE

const ilWACException::NO_CHECKING_INSTANCE = 9004

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

Referenced by ilWebAccessCheckerDelivery\handleRequest().

◆ NOT_FOUND

◆ WRONG_PATH_TYPE

const ilWACException::WRONG_PATH_TYPE = 9005

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

Referenced by ilWACSignedPath\getSignedPath().


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