ok
Direktori : /home2/selectio/public_html/a1tex.in/vendor/spatie/crawler/src/Exceptions/ |
Current File : /home2/selectio/public_html/a1tex.in/vendor/spatie/crawler/src/Exceptions/InvalidUrl.php |
<?php namespace Spatie\Crawler\Exceptions; use Exception; use Psr\Http\Message\UriInterface; use Spatie\Crawler\CrawlUrl; class InvalidUrl extends Exception { public static function unexpectedType($url) { $crawlUrlClass = CrawlUrl::class; $uriInterfaceClass = UriInterface::class; $givenUrlClass = is_object($url) ? get_class($url) : gettype($url); return new static("You passed an invalid url of type `{$givenUrlClass}`. This should be either a {$crawlUrlClass} or `{$uriInterfaceClass}`"); } }