e6b6aa0b09
I noticed that directorty structure of hphp/system was a bit scattered, so I consolidated things to reduce the total number of folders and to put related things together with each other. This diff moves the contents of "hphp/system/classes_hhvm" into "hphp/system", it moves the contents of "hphp/system/lib" into "hphp/system", moves "hphp/idl" to "hphp/system/idl", and moves the contents of "hphp/system/globals" into "hphp/system/idl".
47 linhas
1.4 KiB
PHP
47 linhas
1.4 KiB
PHP
<?php
|
|
|
|
// This doc comment block generated by idl/sysdoc.php
|
|
/**
|
|
* ( excerpt from http://php.net/manual/en/class.errorexception.php )
|
|
*
|
|
* An Error Exception.
|
|
*
|
|
*/
|
|
class ErrorException extends Exception {
|
|
protected $severity;
|
|
// This doc comment block generated by idl/sysdoc.php
|
|
/**
|
|
* ( excerpt from http://php.net/manual/en/errorexception.construct.php )
|
|
*
|
|
* Constructs the Exception.
|
|
*
|
|
* @message mixed The Exception message to throw.
|
|
* @code mixed The Exception code.
|
|
* @severity mixed The severity level of the exception.
|
|
* @filename mixed The filename where the exception is thrown.
|
|
* @lineno mixed The line number where the exception is thrown.
|
|
*/
|
|
public function __construct($message = "", $code = 0, $severity = 0,
|
|
$filename = null, $lineno = null) {
|
|
parent::__construct($message, $code);
|
|
$this->severity = $severity;
|
|
if ($filename !== null) {
|
|
$this->file = $filename;
|
|
}
|
|
if ($lineno !== null) {
|
|
$this->line = $lineno;
|
|
}
|
|
}
|
|
|
|
// This doc comment block generated by idl/sysdoc.php
|
|
/**
|
|
* ( excerpt from http://php.net/manual/en/errorexception.getseverity.php )
|
|
*
|
|
* Returns the severity of the exception.
|
|
*
|
|
* @return mixed Returns the severity level of the exception.
|
|
*/
|
|
final public function getSeverity() { return $this->severity; }
|
|
}
|
|
|