20 lines
412 B
PHP
20 lines
412 B
PHP
<?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
|
|
*/
|
|
class Exception extends \Exception {
|
|
protected $code;
|
|
|
|
function __construct($message = '', $code = NULL, $previous = NULL) {
|
|
parent::__construct($message, 0, $previous);
|
|
$this->code = $code;
|
|
}
|
|
}
|
|
|