Source code for semilattices._exceptions

#
# This file is part of semilattices.
#
# semilattices is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# semilattices is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with semilattices.  If not, see <http://www.gnu.org/licenses/>.
#
# semilattices
# Copyright (C) 2018-2019 
# Massachusetts Institute of Technology                    The University of Texas at Austin
# Uncertainty Quantification group                and      Center for Computational Geosciences and Optimization
# Department of Aeronautics and Astronautics               The Oden Institute for Computational Engineering and Sciences
# 
# Authors: Daniele Bigoni and Joshua Chen
# Contact: dabi@mit.edu / joshuawchen@utexas.edu
# Website: 
# Support:
#

__all__ = ['ArgumentsException',
           'ChildAlreadyExists',
           'CorruptedSemilatticeException',
           'DecreasingSemilatticeException',
           'EdgeException',
           'EmptySemilatticeException',
           'FrontierException',
           'GraphException',
           'InitializationException',
           'InvalidChild',
           'InvalidDimension',
           'InvalidParent',
           'InvalidVertex',
           'InvalidVertexConstructor',
           'IteratorException',
           'LabelsException',
           'SemilatticeException',
           'SparseKeysException',
           'ViolatesDecreasingProperty',
           'VertexException']

#make exceptions consistent and intuitve accross library at some point

[docs]class ArgumentsException(Exception): pass
[docs]class GraphException(Exception): pass
[docs]class IteratorException(Exception): pass
[docs]class EdgeException(Exception): pass
[docs]class SemilatticeException(GraphException): pass
[docs]class SparseKeysException(Exception): pass
[docs]class EmptySemilatticeException(GraphException): pass
[docs]class CorruptedSemilatticeException(GraphException): pass
[docs]class ChildAlreadyExists(SemilatticeException): pass
[docs]class InitializationException(SemilatticeException): pass
[docs]class InvalidVertex(SemilatticeException): pass
[docs]class InvalidParent(SemilatticeException): pass
[docs]class InvalidChild(SemilatticeException): pass
[docs]class InvalidDimension(SemilatticeException): pass
[docs]class DecreasingSemilatticeException(SemilatticeException): pass
[docs]class ViolatesDecreasingProperty(DecreasingSemilatticeException): pass
[docs]class VertexException(Exception): pass
[docs]class LabelsException(VertexException): pass
[docs]class InvalidVertexConstructor(VertexException): pass
[docs]class FrontierException(Exception): pass