Introduction
PHP Manual
PHP Manual»URI»Uri\WhatWg\InvalidUrlException

La classe Uri\WhatWg\InvalidUrlException

(PHP 8 >= 8.5.0)

Indique qu'une URL donnée est invalide ou qu'une opération résulterait en une URL invalide selon le standard » WHATWG URL Standard.

namespace Uri\WhatWg;
class InvalidUrlException extends Uri\InvalidUriException {
/* Propriétés */
public readonly array $errors;
/* Propriétés héritées */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Méthodes */
public function __construct(
    string $message = "",
    array $errors = [],
    int $code = 0,
    ?Throwable $previous = null
)
/* Méthodes héritées */
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}
errors
Un array d'objets Uri\WhatWg\UrlValidationError.

Sommaire

To Top