prga.exception module

PRGA’s exception and error types.

exception prga.exception.PRGAAPIError

Bases: prga.exception.PRGAInternalError

An error of an API misuse.

This error is thrown when the API is not used correctly.

exception prga.exception.PRGAIndexError

Bases: IndexError

A PRGA-specific index error.

exception prga.exception.PRGAInternalError

Bases: RuntimeError

Critical internal error within PRGA flow.

As an API user, you should never see this type of exception. If you get such an error, please email angl@princeton.edu with a detailed description and an example to repeat this error. We thank you for help developing PRGA!

exception prga.exception.PRGATypeError(arg, type_, msg=None)

Bases: TypeError

A PRGA-specific type error.