Skip to content

Commit

Permalink
chore: update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Mar 7, 2024
1 parent b7f56d6 commit 24ba7f7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mipac/errors/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ class CannotReplyToAPureRenoteError(APIError):
"""You can not reply to a pure Renote."""


class CannotReplyToSpecifiedVisibilityNoteWithExtendedVisibilityError(APIError):
"""You cannot reply to a specified visibility note with extended visibility."""


class CannotReportTheAdminError(APIError):
"""Cannot report the admin."""

Expand All @@ -129,6 +133,14 @@ class CanNotDeleteInviteCodeError(APIError):
"""You can't delete this invite code."""


class ContainsProhibitedWordsError(APIError):
"""Cannot post because it contains prohibited words."""


class ContainsTooManyMentionsError(APIError):
"""Cannot post because it exceeds the allowed number of mentions."""


class CredentialRequiredError(APIError):
"""Credential required."""

Expand Down Expand Up @@ -229,6 +241,10 @@ class InvalidUrlError(APIError):
"""Invalid URL"""


class IsRemoteUserError(APIError):
"""Currently unavailable to display reactions of remote users. See https://github.com/misskey-dev/misskey/issues/12964"""


class IAmAiError(APIError):
"""You sent a request to Ai-chan, Misskey's showgirl, instead of the server."""

Expand Down

0 comments on commit 24ba7f7

Please sign in to comment.