1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 03:24:20 +00:00

🧹 Consistency changes

This commit is contained in:
Steffo 2020-10-28 18:10:23 +01:00
parent 57fd4cd8c3
commit f8629b6aaf
3 changed files with 21 additions and 8 deletions

View file

@ -1,4 +1,17 @@
class ChallengeFailedError(Exception):
from ..errors import RoyalnetException
class CampaignsError(RoyalnetException):
"""An error related to the campaigns module."""
class ChallengeFailedError(CampaignsError):
"""
The data passed to the Campaign (or its async equivalent) failed the challenge.
"""
__all__ = (
"CampaignsError",
"ChallengeFailedError",
)

View file

@ -5,7 +5,7 @@ import re
import toml
import json
from .errors import *
from .exc import *
class Scroll:

View file

@ -1,19 +1,19 @@
from ..errors import RoyalnetException
class ScrollException(RoyalnetException):
"""An exception raised by the Scroll module."""
class ScrollsException(RoyalnetException):
"""An exception raised by the scrolls module."""
class NotFoundError(ScrollException):
class NotFoundError(ScrollsException):
"""The requested config key was not found."""
class InvalidFormatError(ScrollException):
class InvalidFormatError(ScrollsException):
"""The requested config key is not valid."""
class ParseError(ScrollException):
class ParseError(ScrollsException):
"""The config value could not be parsed correctly."""
@ -22,7 +22,7 @@ class InvalidFileType(ParseError):
__all__ = (
"ScrollException",
"ScrollsException",
"NotFoundError",
"InvalidFormatError",
"ParseError",