Construct an InvalidUrlException object

# Uri\WhatWg\InvalidUrlException::__construct

(PHP 8 >= 8.5.0)

Uri\WhatWg\InvalidUrlException::__construct — Construct an InvalidUrlException object

### Description

public Uri\WhatWg\InvalidUrlException::__construct(
string `$message` = "",
array `$errors` = [],
int `$code` = 0,
?Throwable `$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.

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