Uri\WhatWg\UrlValidationError::__construct
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.5.0)
Construct a UrlValidationError object
Description
Uri\WhatWg\UrlValidationError::__construct(string $context, Uri\WhatWg\UrlValidationErrorType $type, bool $failure)
Constructs a Uri\WhatWg\UrlValidationError object.
Parameters
contextThe input URL at the point where the error was detected.
typeThe type of error.
failureIf 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.