ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 
- Protected Member Functions inherited from ilSystemStyleExceptionBase
 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

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

References ilSystemStyleExceptionBase\$add_info.

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

Field Documentation

◆ INVALID_COLOR_EXCEPTION

const ilSystemStyleColorException::INVALID_COLOR_EXCEPTION = 1001

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