PHP 8.2.32 Released!

RequestParseBodyException

(PHP 8 >= 8.4.0)

简介

当请求体根据 Content-Type 头无效时,request_parse_body() 中会抛出 RequestParseBodyException

类摘要

class RequestParseBodyException extends Exception {
/* 继承的属性 */
protected string $message = "";
private string $string = "";
protected int $code ;
protected string $file = "";
protected int $line ;
private array $trace = [];
private ?Throwable $previous = null;
/* 继承的方法 */
public function Exception::__construct (string $message = "", int $code = 0, ? Throwable $previous = null )
final public function Exception::getMessage (): string
final public function Exception::getPrevious (): ? Throwable
final public function Exception::getCode (): int
final public function Exception::getFile (): string
final public function Exception::getLine (): int
final public function Exception::getTrace (): array
final public function Exception::getTraceAsString (): string
public function Exception::__toString (): string
private function Exception::__clone (): void
}

发现了问题?

了解如何改进此页面提交拉取请求报告一个错误
+添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

AltStyle によって変換されたページ (->オリジナル) /