Uri\WhatWg\UrlValidationError クラス

(PHP 8 >= 8.5.0)

はじめに

Uri\WhatWg\Url で URL をパースする際に 検出されたエラーの詳細情報を提供します。

クラス概要

namespace Uri\WhatWg;
final readonly class UrlValidationError {
/* プロパティ */
public string $context;
public bool $failure;
/* メソッド */
public __construct(string $context, Uri\WhatWg\UrlValidationErrorType $type, bool $failure)
}

プロパティ

context
エラーが検出された時点での入力 URL。
type
エラーの種類。
failure
true の場合、エラーにより URL は不正として拒否されます。false の場合、エラーはパース中に自動的に修正されたソフトエラーです。

目次