Skip to content

Commit

Permalink
errors: added subcommunities errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and slint committed Jun 28, 2024
1 parent 0a5ccc3 commit 87283cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions invenio_communities/subcommunities/services/errors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2024 CERN.
#
# Invenio-communities is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Subcommunities service errors."""


class SubCommunityError(Exception):
"""Base error for subcommunities service."""


class ParentChildrenNotAllowed(SubCommunityError):
"""Parent community does not accept subcommunities."""

0 comments on commit 87283cd

Please sign in to comment.