PermissionDeniedexceptions. Misago defines its own two exceptions that act as "messages" for it's own error handler that link user followed to reach view is not up-to-date and could use 301 redirect to make sure bookmarks and crawlers get current link.
BanCacheinstance as its only argument will cause Misago to display "You are banned" error page to the user.
misago.core.shortcuts.paginatehelper function that creates pagination for given data, page number and configuration. If first page is explicit (
user-blog/1/) instead implicit (
user-blog/), this exception is raised for error handler to return redirect to link with implicit first page.
Noneas page number to
misago.core.shortcuts.paginatewhen no page was passed through link.
misago.core.shortcuts.validate_slughelper function that compares link's "slug" part against one from database. If check fails OutdatedSlug exception is raised with parameter name and valid slug as message that Misago's exception handler then uses to construct redirection response to valid link.