2016-08-22 10:42:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Vn\Lib;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class used to store information about errors, warnings and info messages.
|
|
|
|
*
|
|
|
|
* @property string $message The message string
|
|
|
|
* @property string $code The code of message
|
2018-05-23 09:08:11 +00:00
|
|
|
*/
|
|
|
|
class Exception extends \Exception {
|
2016-08-22 10:42:31 +00:00
|
|
|
protected $code;
|
|
|
|
|
2018-05-23 09:08:11 +00:00
|
|
|
function __construct($message = '', $code = NULL, $previous = NULL) {
|
|
|
|
parent::__construct($message, 0, $previous);
|
2016-08-22 10:42:31 +00:00
|
|
|
$this->code = $code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|