mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-16 02:00:43 +00:00
23 lines
472 B
Python
23 lines
472 B
Python
#!/usr/bin/env python3
|
|
"""Doctor exception module."""
|
|
|
|
|
|
class DoctorError(Exception):
|
|
"""Define generic exception."""
|
|
|
|
def __init__(self, msg, original_exception=""):
|
|
super().__init__(f"{msg}\n{original_exception}")
|
|
self.original_exception = original_exception
|
|
|
|
|
|
class ConfigError(DoctorError):
|
|
"""Errors related to config file handling."""
|
|
|
|
pass
|
|
|
|
|
|
class InputError(DoctorError):
|
|
"""Errors related to config file handling."""
|
|
|
|
pass
|