List of PyA exceptions

Below you find a list of all implemented PyA exceptions. If possible, the exceptions are sorted by category.

PyA value exceptions

exception pyaC.pyaErrors.pyaValErrs.PyAFloatingPointError(what, **keys)

When to be raised?

Whenever a floating point error is caught.

exception pyaC.pyaErrors.pyaValErrs.PyANameClash(what, **keys)

When to be raised?

Whenever an unexpected doubling of names (e.g., key values in a dictionary) is encountered.

exception pyaC.pyaErrors.pyaValErrs.PyAValError(what, **keys)

When to be raised?

Whenever an unexpected value is encountered.

PyA uncategorized exceptions

exception pyaC.pyaErrors.pyaOtherErrors.PyAAlgorithmFailure(what, **keys)

When to be raised?

Whenever an algorithm fails in accomplishing its purpose.

exception pyaC.pyaErrors.pyaOtherErrors.PyADeprecationError(what, **keys)

When to be raised?

Whenever a deprecated part of code is called.

exception pyaC.pyaErrors.pyaOtherErrors.PyADownloadError(what, **keys)

When to be raised?

A download could not successfully be carried out.

exception pyaC.pyaErrors.pyaOtherErrors.PyAFileError(fn, mode, **keys)

When to be raised?

Whenever a file-related error is detected.

Parameters
fnstring

Name of the file in question.

modestring, {no, ne}
  • “no”: File could not be opened.

  • “ne”: File does not exist

  • “ae”: File already exists

exception pyaC.pyaErrors.pyaOtherErrors.PyAImportFailure(what, **keys)

When to be raised?

When an import fails. This may not be fatal.

exception pyaC.pyaErrors.pyaOtherErrors.PyANetworkError(what, **keys)

When to be raised?

This exception should be raised when an action through the network has failed (e.g., a download).

exception pyaC.pyaErrors.pyaOtherErrors.PyANotImplemented(what, **keys)

When to be raised?

This exception should be raised when the function/method called has not been implemented. Such a situation often occurs when a member is to be implemented in a derived class (abstract base class concept in c++).

exception pyaC.pyaErrors.pyaOtherErrors.PyAOrderError(what, **keys)

When to be raised?

Whenever operations seem to be carried out in the wrong order.

exception pyaC.pyaErrors.pyaOtherErrors.PyAParameterConflict(what, **keys)

When to be raised?

This exception should be raised when conflicting/mutually exclusive parameters are received.

exception pyaC.pyaErrors.pyaOtherErrors.PyARequiredImport(what, **keys)

When to be raised?

If a definitely needed package (e.g., numpy) cannot be imported.

exception pyaC.pyaErrors.pyaOtherErrors.PyAUnclassifiedError(what, **keys)

When to be raised?

If an error occurred that cannot or shall not be specified further.