php8.5
Home/ Manual/ whatwg / invalidurlexception/ Uri\WhatWg\InvalidUrlException::__construct

Uri\WhatWg\InvalidUrlException::__construct

PHP function Edit on GitHub ✎

(PHP 8 >= 8.5.0)

Construct an InvalidUrlException object

Description

Uri\WhatWg\InvalidUrlException::__construct(string $message = "", array $errors = [], int $code = 0, Throwable|null $previous = null)

Constructs a Uri\WhatWg\InvalidUrlException object.

Parameters

message

Exception message.

errors

An Array of Uri\WhatWg\UrlValidationError objects.

code

Exception code.

previous

The previous exception used for exception chaining.

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