« Uri\WhatWg\InvalidUrlException::__construct
Uri\WhatWg\UrlValidationError::__construct »

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 function __construct(string $context, Uri\WhatWg\UrlValidationErrorType $type, bool $failure)
}

プロパティ

context

エラーが検出された時点での入力 URL。

type

エラーの種類。

failure

true の場合、エラーにより URL は不正として拒否されます。false の場合、エラーはパース中に自動的に修正されたソフトエラーです。

目次

関連キーワード:
WhatWg   UrlValidationError   construct   context   type   failure   パース   検出   プロパティ   UrlValidationErrorType   InvalidUrlException   詳細   提供   概要   namespace   final   readonly   時点   種類   不正   拒否   自動的   修正   ソフト   目次
関連する関数・ページ:
uri-whatwg-urlvalidationerror.construct   uri-whatwg-url.construct   uri-whatwg-invalidurlexception.construct   uri-whatwg-url.parse   uri-whatwg-url.serialize   uri-whatwg-url.resolve