Source code for regraph.exceptions

"""ReGraph exceptions."""


[docs]class ReGraphException(Exception): """Base ReGraph exceptions class."""
[docs]class ReGraphError(ReGraphException): """Exception for errors in ReGraph."""
[docs]class GraphError(ReGraphException): """Class for errors in graph transformation with primitives."""
[docs]class ReGraphWarning(UserWarning): """Class for ReGraph warnings."""
[docs]class GraphAttrsWarning(ReGraphWarning): """Class for warnings about empty attrs dict."""
[docs]class ParsingError(ReGraphException): """Exceptions class for error in command parsing."""
[docs]class RuleError(ReGraphException): """Exceptions class for errors in rules."""
[docs]class FormulaError(ReGraphException): """Exceptions class for formulae."""
[docs]class InvalidHomomorphism(ReGraphException): """Exceptions class for invalid homomorphisms."""
[docs]class HierarchyError(ReGraphException): """Exceptions class for hierarchy handling."""
[docs]class TotalityWarning(ReGraphWarning): """Warning about the edge in the hierarchy becoming partial."""
[docs]class RewritingError(ReGraphException): """Exceptions class for errors in rewriting in a hierarchy."""
[docs]class AttributeSetError(ReGraphException): """Exceptions class for errors in attribute sets."""
[docs]class TypingWarning(ReGraphWarning): """Class for warnings about wrong typings."""
[docs]class TypedNeo4jGraphError(ReGraphException): """Exceptions class for errors in typed neo4j graphs."""
[docs]class RevisionError(ReGraphException): """Exceptions class for erros in Hierarchy revisions."""
[docs]class RevisionWarning(ReGraphWarning): """Class for Revision warnings."""