1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-22 19:14:20 +00:00

💥 Improve blueprint stuff

This commit is contained in:
Steffo 2020-12-11 23:35:48 +01:00
parent abcf89782b
commit 4f84746736
3 changed files with 4 additions and 2 deletions

View file

@ -45,6 +45,7 @@ class Message(Blueprint, metaclass=abc.ABCMeta):
:raises .exc.NeverAvailableError: If the chat platform does not support channels.
:raises .exc.NotAvailableError: If this message was not sent in any channel.
"""
raise exc.NeverAvailableError()
__all__ = (

View file

@ -27,6 +27,7 @@ class User(Blueprint, metaclass=abc.ABCMeta):
:param session: A :class:`sqlalchemy.orm.Session` instance to use to fetch the database entry.
:return: The database entry for this user.
"""
raise exc.NeverAvailableError()
__all__ = (

View file

@ -19,7 +19,7 @@ class NeverAvailableError(BlueprintError, NotImplementedError):
The requested property is never supplied by the chat platform the message was sent in.
"""
priority = -1
priority = 1
class NotAvailableError(BlueprintError):
@ -27,7 +27,7 @@ class NotAvailableError(BlueprintError):
The requested property was not supplied by the chat platform for the specific message this exception was raised in.
"""
priority = -2
priority = 2
class TeleporterError(EngineerException, pydantic.ValidationError):