JSON JsonException 클래스
(PHP 7 >= 7.3.0, PHP 8)
소개
json_encode() 또는 json_decode()에 대해 JSON_THROW_ON_ERROR
옵션이 설정된 경우 예외가 발생합니다. code에는 오류 유형이 포함되어 있습니다. 가능한 값은 json_last_error()를 참조하세요.
클래스 개요
class JsonException extends Exception {
/* Inherited properties */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Inherited methods */
final public Exception::getMessage(): string
final public Exception::getPrevious(): ?Throwable
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
final public Exception::getTraceAsString(): string
public Exception::__toString(): string
private Exception::__clone(): void
}