mirror of
https://github.com/koel/koel
synced 2024-12-20 17:43:36 +00:00
20 lines
454 B
PHP
20 lines
454 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Exceptions;
|
||
|
|
||
|
use Exception;
|
||
|
use Throwable;
|
||
|
|
||
|
final class FailedToParsePodcastFeedException extends Exception
|
||
|
{
|
||
|
private function __construct(string $url, Throwable $previous)
|
||
|
{
|
||
|
parent::__construct("Failed to parse the podcast feed at $url.", (int) $previous->getCode(), $previous);
|
||
|
}
|
||
|
|
||
|
public static function create(string $url, Throwable $previous): self
|
||
|
{
|
||
|
return new self($url, $previous);
|
||
|
}
|
||
|
}
|