devsexception.py 419 B

123456789101112131415161718
  1. class DEVSException(Exception):
  2. """
  3. DEVS specific exceptions
  4. """
  5. def __init__(self, message="not specified in source"):
  6. """
  7. Constructor
  8. :param message: error message to print
  9. """
  10. Exception.__init__(self, message)
  11. def __str__(self):
  12. """
  13. String representation of the exception
  14. """
  15. return "DEVS Exception: " + str(self.message)