# app/exceptions/content_page.py """ DEPRECATED: This module has moved to app.modules.cms.exceptions Please update your imports: # Old (deprecated): from app.exceptions.content_page import ContentPageNotFoundException # New (preferred): from app.modules.cms.exceptions import ContentPageNotFoundException This shim re-exports from the new location for backwards compatibility. """ import warnings warnings.warn( "Import from app.modules.cms.exceptions instead of " "app.exceptions.content_page. This shim will be removed in a future version.", DeprecationWarning, stacklevel=2, ) # Re-export everything from the new location from app.modules.cms.exceptions import ( # noqa: E402, F401 ContentPageAlreadyExistsException, ContentPageNotFoundException, ContentPageNotPublishedException, ContentPageSlugReservedException, ContentPageValidationException, UnauthorizedContentPageAccessException, VendorNotAssociatedException, ) __all__ = [ "ContentPageNotFoundException", "ContentPageAlreadyExistsException", "ContentPageSlugReservedException", "ContentPageNotPublishedException", "UnauthorizedContentPageAccessException", "VendorNotAssociatedException", "ContentPageValidationException", ]