-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutOfRangeException.php
More file actions
49 lines (46 loc) · 1.24 KB
/
OutOfRangeException.php
File metadata and controls
49 lines (46 loc) · 1.24 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* OutOfRange Call Exception
*
* @package Exception
* @copyright 2014 Amy Stephen. All rights reserved.
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
namespace CommonApi\Exception;
use Exception;
use OutOfRangeException as OutOfRange;
/**
* OutOfRange Exception
*
* @package Exception
* @copyright 2014 Amy Stephen. All rights reserved.
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @since 1.0
*/
class OutOfRangeException extends OutOfRange implements ExceptionInterface
{
/**
* Class Constructor
*
* @param null|string $message
* @param null|int $code
* @param Exception $previous
*
* @link http://php.net/manual/en/exception.construct.php
* @link http://php.net/manual/en/language.exceptions.extending.php
*/
public function __construct($message = null, $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
/**
* Custom String Representation of Object
*
* @return string
* @since 1.0.0
*/
public function __toString()
{
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
}
}