php8.5
Home/ Manual/ reference / uri/ The Uri\WhatWg\UrlValidationError class

The Uri\WhatWg\UrlValidationError class

Provides details about errors that were detected when parsing a URL with Uri\WhatWg\Url.

Intro

Provides details about errors that were detected when parsing a URL with Uri\WhatWg\Url.

Class synopsis

Uri\WhatWgfinalreadonlyUrlValidationErrorPropertiespublicstringcontextpublicUri\WhatWg\UrlValidationErrorTypetypepublicboolfailureMethods

Properties

context

The input URL at the point where the error was detected.

type

The type of error.

failure

If true the error caused the URL to be rejected as invalid. If false the error is a soft error that was automatically corrected during parsing.

Urlvalidationerror

Source: reference/uri/uri.whatwg.urlvalidationerror.xml · from the official PHP manual (php/doc-en)