The error can either be given as a string, or as an array. If it is an array, the first element in the array
(with index 0), is the error code, while the other elements are replacements for the error text.
public __construct ( mixed $errorCode, Exception $cause = null, integer | null $httpCode = null ) | ||
$errorCode | mixed | One of the error codes defined in the errors dictionary. |
$cause | Exception | The exception which caused this fatal error (if any). Optional. |
$httpCode | integer | null | The HTTP response code to use. Optional. |