| 695 | |
| 696 | |
| 697 | class FeastConfigError(Exception): |
| 698 | def __init__(self, error_message, config_path): |
| 699 | self._error_message = error_message |
| 700 | self._config_path = config_path |
| 701 | super().__init__(self._error_message) |
| 702 | |
| 703 | def __str__(self) -> str: |
| 704 | return f"{self._error_message}\nat {self._config_path}" |
| 705 | |
| 706 | def __repr__(self) -> str: |
| 707 | return ( |
| 708 | f"FeastConfigError({repr(self._error_message)}, {repr(self._config_path)})" |
| 709 | ) |
| 710 | |
| 711 | |
| 712 | def get_data_source_class_from_type(data_source_type: str): |