mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
💥 Improve blueprint stuff
This commit is contained in:
parent
abcf89782b
commit
4f84746736
3 changed files with 4 additions and 2 deletions
|
@ -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__ = (
|
||||
|
|
|
@ -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__ = (
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue