Documentation for crwlr / url (v1.1)

Attention: You're currently viewing the documentation for v1.1 of the url package.
This is not the latest version of the package.
If you didn't navigate to this version intentionally, you can click here to switch to the latest version.

Exceptions

There are two Exceptions that can be thrown by the Url class:

  • InvalidUrlException when you try to create an instance from a string that isn't a valid Uri.
  • InvalidUrlComponentException when you try to set an invalid new value for a component (scheme, host,...).

When you're dealing with unpredictable input source, you should catch and handle them somehow.