koel/app/Exceptions/SpotifyIntegrationDisabledException.php

20 lines
413 B
PHP
Raw Normal View History

2022-07-18 11:00:37 +00:00
<?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.');
}
}