mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
11 lines
322 B
Python
11 lines
322 B
Python
class SaveSettingsValidation(Exception):
|
|
pass
|
|
|
|
|
|
class SaveWarningExc(SaveSettingsValidation):
|
|
def __init__(self, warnings):
|
|
if isinstance(warnings, str):
|
|
warnings = [warnings]
|
|
self.warnings = warnings
|
|
msg = " | ".join(warnings)
|
|
super(SaveWarningExc, self).__init__(msg)
|