AppserverIo\Appserver\ServletEngine\Utils\Error::__construct PHP Метод

__construct() публичный Метод

Initializes the error with the passed values.
public __construct ( integer $type, string $message, string $file, integer $line, integer $statusCode = 500 )
$type integer The error type
$message string The error message
$file string The name of the file where the error has been triggered
$line integer The line in the file where the error has been triggered
$statusCode integer The HTTP status code that has to be send back with the response
    public function __construct($type, $message, $file, $line, $statusCode = 500)
    {
        $this->type = $type;
        $this->message = $message;
        $this->file = $file;
        $this->line = $line;
        $this->statusCode = $statusCode;
    }