Source code for calliope.exceptions

"""
Copyright (C) 2013-2017 Calliope contributors listed in AUTHORS.
Licensed under the Apache 2.0 License (see LICENSE file).

exceptions.py
~~~~~~~~~~~~~

Exceptions and Warnings.

"""


[docs]class ModelError(Exception): """ ModelErrors should stop execution of the model, e.g. due to a problem with the model formulation or input data. """ pass
class OptionNotSetError(ModelError): pass
[docs]class ModelWarning(Warning): """ ModelWarnings should be raised for possible model errors, but where execution can still continue. """ pass