Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

exceptions.py 856B

123456789101112131415161718192021
  1. # -*- coding: utf-8 -*-
  2. # Copyright (c) 2016-2017 Claudiu Popa <pcmanticore@gmail.com>
  3. # Copyright (c) 2016 Glenn Matthews <glenn@e-dad.net>
  4. # Copyright (c) 2017 Łukasz Rogalski <rogalski.91@gmail.com>
  5. # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  6. # For details: https://github.com/PyCQA/pylint/blob/master/COPYING
  7. """Exception classes raised by various operations within pylint."""
  8. class InvalidMessageError(Exception):
  9. """raised when a message creation, registration or addition is rejected"""
  10. class UnknownMessageError(Exception):
  11. """raised when a unregistered message id is encountered"""
  12. class EmptyReportError(Exception):
  13. """raised when a report is empty and so should not be displayed"""
  14. class InvalidReporterError(Exception):
  15. """raised when selected reporter is invalid (e.g. not found)"""