Distinguish between "equipment library errors" and other "config errors"

And because no code for these "other config errors" has been merged yet,
this is just a placeholder for future work.
This commit is contained in:
Jan Kundrát
2019-05-30 12:28:47 +02:00
parent f09789f5ef
commit 58c16a59ac
4 changed files with 25 additions and 16 deletions

View File

@@ -11,3 +11,6 @@ Exceptions thrown by other gnpy modules
class ConfigurationError(Exception):
'''User-provided configuration contains an error'''
class EquipmentConfigError(ConfigurationError):
'''Incomplete or wrong configuration within the equipment library'''