Allow systemlib to use FThrowOnRefMismatch calling convention.
[hiphop-php.git] / hphp / system / php / lang / ErrorException.php
blob1837df90fad57ce62a214076d812708780c5b854
1 <?hh
3 namespace {
5 // This doc comment block generated by idl/sysdoc.php
6 /**
7 * ( excerpt from http://php.net/manual/en/class.errorexception.php )
9 * An Error Exception.
12 class ErrorException extends Exception {
13 protected $severity;
14 // This doc comment block generated by idl/sysdoc.php
15 /**
16 * ( excerpt from http://php.net/manual/en/errorexception.construct.php )
18 * Constructs the Exception.
20 * @message mixed The Exception message to throw.
21 * @code mixed The Exception code.
22 * @severity mixed The severity level of the exception.
23 * @filename mixed The filename where the exception is thrown.
24 * @lineno mixed The line number where the exception is thrown.
25 * @previous mixed The previous exception used for the exception
26 * chaining.
28 <<__Rx>>
29 public function __construct($message = "", $code = 0, $severity = 0,
30 $filename = null, $lineno = null, <<__MaybeMutable>> Exception $previous = null) {
31 parent::__construct($message, $code, $previous);
32 $this->severity = $severity;
33 if ($filename !== null) {
34 $this->file = $filename;
36 if ($lineno !== null) {
37 $this->line = $lineno;
41 // This doc comment block generated by idl/sysdoc.php
42 /**
43 * ( excerpt from http://php.net/manual/en/errorexception.getseverity.php )
45 * Returns the severity of the exception.
47 * @return mixed Returns the severity level of the exception.
49 <<__Rx, __MaybeMutable>>
50 final public function getSeverity() { return $this->severity; }