php-vn-lib/lib/exception.php

20 lines
412 B
PHP
Raw Normal View History

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