Exceptions

This page contains exceptions raised by binarytree:

exception binarytree.exceptions.BinaryTreeError[source]

Base (catch-all) binarytree exception.

exception binarytree.exceptions.NodeIndexError[source]

Node index was invalid.

exception binarytree.exceptions.NodeModifyError[source]

User tried to overwrite or delete the root node.

exception binarytree.exceptions.NodeNotFoundError[source]

Node was missing from the binary tree.

exception binarytree.exceptions.NodeReferenceError[source]

Node reference was invalid (e.g. cyclic reference).

exception binarytree.exceptions.NodeTypeError[source]

Node was not an instance of binarytree.Node.

exception binarytree.exceptions.NodeValueError[source]

Node value was not a number (e.g. float, int, str).

exception binarytree.exceptions.TreeHeightError[source]

Tree height was invalid.