class AccessDenied(Exception): """ This error is raised when a user is not allowed to access a resource """ pass