exceptions
CausalGraphErrors
from cai_causal_graph.exceptions import CausalGraphErrors
class CausalGraphErrors()
All errors related to causal graphs.
CyclicConnectionError
from cai_causal_graph.exceptions import CyclicConnectionError
class CyclicConnectionError(Exception)
Error raised when a cyclic connection would be made in a DAG.
GraphConversionError
from cai_causal_graph.exceptions import GraphConversionError
class GraphConversionError(Exception)
Raised when converting graph formats fails.
InvalidAdjacencyMatrixError
from cai_causal_graph.exceptions import InvalidAdjacencyMatrixError
class InvalidAdjacencyMatrixError(Exception)
Error raised when trying to instantiate a causal graph from an invalid adjacency matrix.
InvalidNetworkXError
from cai_causal_graph.exceptions import InvalidNetworkXError
class InvalidNetworkXError(Exception)
Error raised when trying to instantiate a causal graph from an invalid networkx object.
NodeExistsError
from cai_causal_graph.exceptions import NodeExistsError
class NodeExistsError(Exception)
Error raised when node already exists in the graph.
NodeDoesNotExistError
from cai_causal_graph.exceptions import NodeDoesNotExistError
class NodeDoesNotExistError(Exception)
Error raised when node does not exist in the graph.
NodeDuplicatedError
from cai_causal_graph.exceptions import NodeDuplicatedError
class NodeDuplicatedError(Exception)
Error raised when duplicate node is attempted to be added to the graph.
NodeInvalidError
from cai_causal_graph.exceptions import NodeInvalidError
class NodeInvalidError(Exception)
Error raised when node specifications are invalid.
EdgeExistsError
from cai_causal_graph.exceptions import EdgeExistsError
class EdgeExistsError(Exception)
Error raised when edge already exists in the graph.
EdgeDoesNotExistError
from cai_causal_graph.exceptions import EdgeDoesNotExistError
class EdgeDoesNotExistError(Exception)
Error raised when edge does not exist in the graph.
EdgeInvalidError
from cai_causal_graph.exceptions import EdgeInvalidError
class EdgeInvalidError(Exception)
Error raised when edge specifications are invalid.
EdgeDuplicatedError
from cai_causal_graph.exceptions import EdgeDuplicatedError
class EdgeDuplicatedError(Exception)
Error raised when duplicate edge is attempted to be added to the graph.
CausalKnowledgeErrors
from cai_causal_graph.exceptions import CausalKnowledgeErrors
class CausalKnowledgeErrors()
All errors related to causal knowledge.
KnowledgeConflictError
from cai_causal_graph.exceptions import KnowledgeConflictError
class KnowledgeConflictError(Exception)
Error raised when there is a conflict in the causal knowledge.
InvalidDomainKnowledgeError
from cai_causal_graph.exceptions import InvalidDomainKnowledgeError
class InvalidDomainKnowledgeError(Exception)
Raised when the provided domain knowledge is invalid.
InvalidSkeletonError
from cai_causal_graph.exceptions import InvalidSkeletonError
class InvalidSkeletonError(Exception)
Raised when the provided skeleton is invalid.
InvalidTiersError
from cai_causal_graph.exceptions import InvalidTiersError
class InvalidTiersError(Exception)
Raised when the provided tiers are invalid.
MetaDataError
from cai_causal_graph.exceptions import MetaDataError
class MetaDataError(Exception)
Error raised by the HasMetadata relating to metadata.