php-vn-lib/lib/exception.php

22 lines
416 B
PHP
Executable File

<?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;
}
}