Since: 8.5

final class UrlValidationError (View source)

Properties

string $context
UrlValidationErrorType $type
bool $failure

Methods

__construct(string $context, UrlValidationErrorType $type, bool $failure)

Construct a UrlValidationError object

Details

__construct(string $context, UrlValidationErrorType $type, bool $failure)

Construct a UrlValidationError object

Constructs a Uri\WhatWg\UrlValidationError object.

Parameters

string $context

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

UrlValidationErrorType $type

The type of error.

bool $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.