SessionException.php
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
class SessionException extends Exception {
#Constants with exception levels
const E_ERROR = 1;
const E_WARNING = 2;
const E_PARSE = 4;
const E_NOTICE = 8;
const E_CORE_ERROR = 16;
const E_CORE_WARNING = 32;
const E_USER_ERROR = 256;
const E_USER_WARNING = 512;
const E_USER_NOTICE = 1024;
const E_STRICT = 2048;
/**
* Constructor of class ServerException
* Specifies custom error message with class name
*
* @acces public
*
* @param sMessage Custom error message
* @param sLevel Exception level
*
* @returns void
**/
public function __construct($sMessage = NULL, $sLevel = 1) {
parent::__construct(__CLASS__.' threw: '.$sMessage, $sLevel);
}
}
?>
class SessionException extends Exception {
#Constants with exception levels
const E_ERROR = 1;
const E_WARNING = 2;
const E_PARSE = 4;
const E_NOTICE = 8;
const E_CORE_ERROR = 16;
const E_CORE_WARNING = 32;
const E_USER_ERROR = 256;
const E_USER_WARNING = 512;
const E_USER_NOTICE = 1024;
const E_STRICT = 2048;
/**
* Constructor of class ServerException
* Specifies custom error message with class name
*
* @acces public
*
* @param sMessage Custom error message
* @param sLevel Exception level
*
* @returns void
**/
public function __construct($sMessage = NULL, $sLevel = 1) {
parent::__construct(__CLASS__.' threw: '.$sMessage, $sLevel);
}
}
?>