mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-14 01:00:40 +00:00
23 lines
484 B
Python
23 lines
484 B
Python
#!/usr/bin/env python3
|
|
"""Custom exceptions."""
|
|
|
|
|
|
class DoctorError(Exception):
|
|
"""Generic exception class for ansible-doctor."""
|
|
|
|
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
|