From: joshuaruesweg Date: Thu, 4 Mar 2021 16:10:39 +0000 (+0100) Subject: Move Exceptions to own namespace X-Git-Tag: 5.4.0_Alpha_1~146^2~35 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3baef899fe6d6d4ffbf7106c507f8da16c53c3fd;p=GitHub%2FWoltLab%2FWCF.git Move Exceptions to own namespace --- diff --git a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php index c747e160d1..0b38217688 100644 --- a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php @@ -6,10 +6,10 @@ use BadMethodCallException; use GuzzleHttp\Psr7\Response; use wcf\data\unfurl\url\UnfurlUrl; use wcf\data\unfurl\url\UnfurlUrlAction; -use wcf\system\message\unfurl\DownloadFailed; -use wcf\system\message\unfurl\ParsingFailed; +use wcf\system\message\unfurl\exception\DownloadFailed; +use wcf\system\message\unfurl\exception\ParsingFailed; +use wcf\system\message\unfurl\exception\UrlInaccessible; use wcf\system\message\unfurl\UnfurlResponse; -use wcf\system\message\unfurl\UrlInaccessible; use wcf\util\FileUtil; use wcf\util\StringUtil; diff --git a/wcfsetup/install/files/lib/system/message/unfurl/DownloadFailed.class.php b/wcfsetup/install/files/lib/system/message/unfurl/DownloadFailed.class.php deleted file mode 100644 index c9e776b297..0000000000 --- a/wcfsetup/install/files/lib/system/message/unfurl/DownloadFailed.class.php +++ /dev/null @@ -1,18 +0,0 @@ - - * @package WoltLabSuite\Core\System\Message\Unfurl - * @since 5.4 - */ -class DownloadFailed extends Exception -{ -} diff --git a/wcfsetup/install/files/lib/system/message/unfurl/ParsingFailed.class.php b/wcfsetup/install/files/lib/system/message/unfurl/ParsingFailed.class.php deleted file mode 100644 index 595288c551..0000000000 --- a/wcfsetup/install/files/lib/system/message/unfurl/ParsingFailed.class.php +++ /dev/null @@ -1,18 +0,0 @@ - - * @package WoltLabSuite\Core\System\Message\Unfurl - * @since 5.4 - */ -class ParsingFailed extends Exception -{ -} diff --git a/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php b/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php index 7fdaa5908f..a038713c3b 100644 --- a/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php +++ b/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php @@ -11,6 +11,9 @@ use GuzzleHttp\Psr7\Response; use GuzzleHttp\RequestOptions; use Psr\Http\Client\ClientExceptionInterface; use wcf\system\io\HttpFactory; +use wcf\system\message\unfurl\exception\DownloadFailed; +use wcf\system\message\unfurl\exception\ParsingFailed; +use wcf\system\message\unfurl\exception\UrlInaccessible; use wcf\util\ArrayUtil; use wcf\util\StringUtil; use wcf\util\Url; diff --git a/wcfsetup/install/files/lib/system/message/unfurl/UrlInaccessible.class.php b/wcfsetup/install/files/lib/system/message/unfurl/UrlInaccessible.class.php deleted file mode 100644 index 2db18a419e..0000000000 --- a/wcfsetup/install/files/lib/system/message/unfurl/UrlInaccessible.class.php +++ /dev/null @@ -1,18 +0,0 @@ - - * @package WoltLabSuite\Core\System\Message\Unfurl - * @since 5.4 - */ -class UrlInaccessible extends Exception -{ -} diff --git a/wcfsetup/install/files/lib/system/message/unfurl/exception/DownloadFailed.class.php b/wcfsetup/install/files/lib/system/message/unfurl/exception/DownloadFailed.class.php new file mode 100644 index 0000000000..4d163ee162 --- /dev/null +++ b/wcfsetup/install/files/lib/system/message/unfurl/exception/DownloadFailed.class.php @@ -0,0 +1,18 @@ + + * @package WoltLabSuite\Core\System\Message\Unfurl + * @since 5.4 + */ +class DownloadFailed extends Exception +{ +} diff --git a/wcfsetup/install/files/lib/system/message/unfurl/exception/ParsingFailed.class.php b/wcfsetup/install/files/lib/system/message/unfurl/exception/ParsingFailed.class.php new file mode 100644 index 0000000000..c11296a81d --- /dev/null +++ b/wcfsetup/install/files/lib/system/message/unfurl/exception/ParsingFailed.class.php @@ -0,0 +1,18 @@ + + * @package WoltLabSuite\Core\System\Message\Unfurl + * @since 5.4 + */ +class ParsingFailed extends Exception +{ +} diff --git a/wcfsetup/install/files/lib/system/message/unfurl/exception/UrlInaccessible.class.php b/wcfsetup/install/files/lib/system/message/unfurl/exception/UrlInaccessible.class.php new file mode 100644 index 0000000000..3b0586a527 --- /dev/null +++ b/wcfsetup/install/files/lib/system/message/unfurl/exception/UrlInaccessible.class.php @@ -0,0 +1,18 @@ + + * @package WoltLabSuite\Core\System\Message\Unfurl + * @since 5.4 + */ +class UrlInaccessible extends Exception +{ +}