类 NotImplementedException
未实现异常 - 当 API 方法未实现时使用
        
    命名空间: Cake\Http\Exception
    
    
    
      
  
      属性摘要
- 
        $_attributes protected数组从构造函数传递进来的属性数组,并在显示开发错误时在视图中可用。 
- 
        $_defaultCode protected整数默认异常代码 
- 
        $_messageTemplate protected字符串包含属性的模板字符串,使用 sprintf() 插入。 
- 
        $headers protectedarray<string, mixed>
方法摘要
- 
          __construct() public构造函数。 
- 
          getAttributes() public获取传入的属性 
- 
          getHeaders() public返回响应头数组。 
- 
          setHeader() public设置单个 HTTP 响应头。 
- 
          setHeaders() public设置 HTTP 响应头。 
方法详细
__construct() ¶ public
__construct(array|string $message = '', int|null $code = null, Throwable|null $previous = null)构造函数。
允许您创建被视为框架错误并在调试模式关闭时禁用的异常。
参数
- 
                array|string$message 可选
- 错误消息字符串,或在视图中可用并使用 sprintf() 插入 Exception::$_messageTemplate 的属性数组。 
- 
                int|null$code 可选
- 错误代码 
- 
                Throwable|null$previous 可选
- 之前的异常。 
setHeader() ¶ public
setHeader(string $header, list<string>|string|null $value = null): void设置单个 HTTP 响应头。
参数
- 
                string$header
- 头名称 
- 
                list<string>|string|null$value 可选
- 头值 
返回
voidsetHeaders() ¶ public
setHeaders(array<string, mixed> $headers): void设置 HTTP 响应头。
参数
- 
                array<string, mixed>$headers
- 头名称和值对的数组。 
返回
void