ReferenceException Handling

Overview

Polyaxon's Python library raises some of its own exceptions as well as standard Python exceptions. The tracking module uses the same exception model, and can also raise exceptions from logging libraries such as matplotlib or pandas.

Core Exceptions

Polyaxon raises several exceptions, all classes are derived from:

from polyaxon.exceptions import PolyaxonException

Schema and Compiler Exceptions

During the parsing and validation of a Polyaxonfile or configurations, Polyaxon will raise:

from polyaxon.exceptions import PolyaxonSchemaError, PolyaxonfileError, PolyaxonCompilerError

Client Exceptions

When performing API calls using the Python client, Polyaxon will raise:

from polyaxon.exceptions import PolyaxonClientException, PolyaxonHTTPError

Data validation

When logging metadata or artifacts, tracking calls can also raise:

TypeError
ValueError
OSError