mirror of
https://github.com/koel/koel
synced 2024-12-22 18:43:21 +00:00
20 lines
413 B
PHP
20 lines
413 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Exceptions;
|
||
|
|
||
|
use Exception;
|
||
|
use Throwable;
|
||
|
|
||
|
class SpotifyIntegrationDisabledException extends Exception
|
||
|
{
|
||
|
private function __construct(string $message = '', int $code = 0, ?Throwable $previous = null)
|
||
|
{
|
||
|
parent::__construct($message, $code, $previous);
|
||
|
}
|
||
|
|
||
|
public static function create(): self
|
||
|
{
|
||
|
return new self('Spotify integration is disabled.');
|
||
|
}
|
||
|
}
|