Source code for bowtie.exceptions

"""Bowtie exceptions."""


[docs]class YarnError(Exception): """Errors from ``Yarn``."""
[docs]class WebpackError(Exception): """Errors from ``Webpack``."""
[docs]class SizeError(Exception): """Size values must be a number."""
[docs]class GridIndexError(IndexError): """Invalid index into the grid layout."""
[docs]class NoUnusedCellsError(Exception): """All cells are used."""
[docs]class SpanOverlapError(Exception): """Spans may not overlap."""
[docs]class MissingRowOrColumn(Exception): """Missing a row or column."""
[docs]class NoSidebarError(Exception): """Cannot add to the sidebar when it doesn't exist."""
[docs]class NotStatefulEvent(Exception): """Event is not stateful and cannot be paired with other events."""
[docs]class SerializationError(TypeError): """Cannot serialize the data for command."""