Source code for dasi.exceptions

r"""
Exceptions (:mod:`dasi.exceptions`)
=============================

.. currentmodule:: dasi.exceptions

This module provides DASi exceptions and warnings
"""
from dasi.utils.networkx.exceptions import NetworkxUtilsException


[docs]class DASiWarning(Warning): """A generic dasi warning."""
[docs]class DASiException(Exception): """A generic dasi exception."""
[docs]class AlignmentException(DASiException): """An alignment exception."""
[docs]class AlignmentContainerException(DASiException): """An alignment container exception."""
[docs]class DasiDesignException(DASiException): """A design exception."""
[docs]class DasiSequenceDesignException(DASiException): """Sequence design exception."""
[docs]class DasiNoPrimerPairsException(DASiException): """Sequence design exception."""
[docs]class DasiInvalidMolecularAssembly(DASiException): """Invalid molecular assembly."""
[docs]class DasiCostParameterValidationError(DASiException): """Input json file for cost parameters was invalid."""
[docs]class DasiOutputValidationError(DASiException): """Output json file was invalid."""