Source code for services.posts.exceptions
[docs]
class AlreadyLikedPostException(Exception):
"""
Post already liked by user
"""
[docs]
class UserNotLikeThisPostException(Exception):
"""
User not Like this post
"""
[docs]
class TooManyCategoriesException(Exception):
"""
Post contains more categories than allowed by the limits.
"""
[docs]
class CategoriesDontExistException(Exception):
"""
Selected categories for post are don't exist or unavailable
"""
[docs]
class AlreadyAddedToFavoritesException(Exception):
"""
Post already added to favorites by user
"""
[docs]
class UserNotHasThisPostInFavoritesException(Exception):
"""
User not doesn't have this post in favorites list
"""