mirror of
https://github.com/weyne85/discord_music_bot.git
synced 2025-10-29 16:58:27 +00:00
27 lines
441 B
Python
27 lines
441 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Error(Exception, ABC):
|
|
@abstractmethod
|
|
def message():
|
|
pass
|
|
|
|
@abstractmethod
|
|
def title():
|
|
pass
|
|
|
|
|
|
class MusicUnavailable(Error):
|
|
def __init__(self, message: str) -> None:
|
|
self.__message = message
|
|
super().__init__(message)
|
|
|
|
def message():
|
|
pass
|
|
|
|
def title():
|
|
pass
|
|
|
|
def __str__(self) -> str:
|
|
return self.__message
|