# The Uri\WhatWg\UrlValidationError class

(PHP 8 >= 8.5.0)

## 简介

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

## 类摘要

namespace Uri\WhatWg;
final readonly class UrlValidationError {
/* 属性 */
public string $context;
public Uri\WhatWg\UrlValidationErrorType $type;
public bool $failure;
/* 方法 */
public function __construct(string `$context`, Uri\WhatWg\UrlValidationErrorType `$type`, bool `$failure`)
}

## 属性

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.

## 目录

- Uri\WhatWg\UrlValidationError::__construct — Construct a UrlValidationError object

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open