mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +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
|