"""Exceptions and errors for BondGraphTools"""
[docs]class InvalidPortException(Exception):
"""Exception for trying to access a port that is in use, or does not
exist """
pass
[docs]class InvalidComponentException(Exception):
"""Exception for when trying to use a model that can't be found, or is of
the wrong type"""
[docs]class ModelParsingError(Exception):
"""Exception for problems generating symbolic equations from string"""
[docs]class ModelException(Exception):
"""Exception for inconsistent or invalid models when running simulations"""
[docs]class SymbolicException(Exception):
"""Exception for when there are issues in model reduction or symbolic
manipulation"""
[docs]class SolverException(Exception):
"""Exception for issues running numerical solving."""