ILIAS  release_8 Revision v8.24
ilSystemStyleColorException Class Reference

Class for advanced editing exception handling in ILIAS. More...

+ Inheritance diagram for ilSystemStyleColorException:
+ Collaboration diagram for ilSystemStyleColorException:

Data Fields

const INVALID_COLOR_EXCEPTION = 1001
 

Protected Member Functions

 assignMessageToCode ()
 
 assignMessageToCode ()
 

Additional Inherited Members

- Public Member Functions inherited from ilSystemStyleExceptionBase
 __construct (int $exception_code=-1, string $exception_info='')
 
 __toString ()
 
- 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...
 
- Protected Attributes inherited from ilSystemStyleExceptionBase
 $message = ''
 
 $code = -1
 
string $add_info = ''
 

Detailed Description

Class for advanced editing exception handling in ILIAS.

Definition at line 23 of file class.ilSystemStyleColorException.php.

Member Function Documentation

◆ assignMessageToCode()

ilSystemStyleColorException::assignMessageToCode ( )
protected

Reimplemented from ilSystemStyleExceptionBase.

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

27 : void
28 {
29 switch ($this->code) {
31 $this->message = 'Invalid Color value';
32 break;
33 default:
34 $this->message = 'Unknown Exception ' . $this->add_info;
35 break;
36 }
37 }

References ilSystemStyleExceptionBase\$add_info, and INVALID_COLOR_EXCEPTION.

Field Documentation

◆ INVALID_COLOR_EXCEPTION


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