$_attributes
$_attributes : array
Array of attributes that are passed in from the constructor, and made available in the view when a development error is displayed.
Represents a fatal error
__construct(string $message, integer|null $code = null, string|null $file = null, integer|null $line = null, \Exception|null $previous = null)
Constructor
Allows you to create exceptions that are treated as framework errors and disabled when debug = 0.
string | $message | Message string. |
integer|null | $code | Code. |
string|null | $file | File name. |
integer|null | $line | Line number. |
\Exception|null | $previous | The previous exception. |
responseHeader(string|array|null $header = null, string|null $value = null) : array
Get/set the response header to be used
See also Cake\Http\Response::withHeader()
string|array|null | $header | An array of header strings or a single header string
|
string|null | $value | The header value. |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @since 3.0.0
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Error;
use Cake\Core\Exception\Exception;
/**
* Represents a fatal error
*/
class FatalErrorException extends Exception
{
/**
* Constructor
*
* @param string $message Message string.
* @param int|null $code Code.
* @param string|null $file File name.
* @param int|null $line Line number.
* @param \Exception|null $previous The previous exception.
*/
public function __construct($message, $code = null, $file = null, $line = null, $previous = null)
{
parent::__construct($message, $code, $previous);
if ($file) {
$this->file = $file;
}
if ($line) {
$this->line = $line;
}
}
}