mirror of
https://github.com/koel/koel
synced 2024-11-24 05:03:05 +00:00
19 lines
454 B
PHP
19 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);
|
|
}
|
|
}
|