Enhanced exception class for TeamSpeak3 objects.
More...
Enhanced exception class for TeamSpeak3 objects.
Definition at line 15 of file TeamSpeak3Exception.php.
◆ __construct()
PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::__construct |
( |
string | $mesg, |
|
|
int | $code = 0x00 ) |
◆ getRawCode()
PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::getRawCode |
( |
| ) |
|
◆ getRawMessage()
PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::getRawMessage |
( |
| ) |
|
◆ getSender()
PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::getSender |
( |
| ) |
|
◆ prepareCustomMessage()
PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::prepareCustomMessage |
( |
StringHelper | $mesg | ) |
|
|
protected |
Prepares a custom error message by replacing pre-defined signs with given values.
- Parameters
-
- Returns
- string
Definition at line 64 of file TeamSpeak3Exception.php.
◆ registerCustomMessage()
PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::registerCustomMessage |
( |
int | $code, |
|
|
string | $mesg ) |
|
static |
Registers a custom error message to $code.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 84 of file TeamSpeak3Exception.php.
◆ unregisterCustomMessage()
PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::unregisterCustomMessage |
( |
int | $code | ) |
|
|
static |
Unregisters a custom error message from $code.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 100 of file TeamSpeak3Exception.php.
◆ $messages
array PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::$messages = [] |
|
staticprotected |
◆ $raw_code
int PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::$raw_code = 0x00 |
|
protected |
◆ $raw_mesg
StringHelper string null PlanetTeamSpeak\TeamSpeak3Framework\Exception\TeamSpeak3Exception::$raw_mesg = null |
|
protected |
The documentation for this class was generated from the following file: