Sujet précédent

5.3.1. decomposers.base — Base classes for decomposers

Sujet suivant

5.5. fileformats — Simple module to test if a file is a CAD file

Cette page

Autres langues

5.4. exceptions — Exceptions

This modules contains exceptions that may be raised by a controller PLMObjectController and UserController.

All exceptions defined here derive from ControllerError (except of course ControllerError)

exception plmapp.exceptions.ControllerError[source]

Bases: exceptions.StandardError

Base class of exceptions raised by a PLMObjectController.

exception plmapp.exceptions.RevisionError[source]

Bases: plmapp.exceptions.ControllerError

Exception raised when revise() is called but making a revision is not allowed.

exception plmapp.exceptions.LockError[source]

Bases: plmapp.exceptions.ControllerError

Exception raised when lock() is called but the document is already locked.

exception plmapp.exceptions.UnlockError[source]

Bases: plmapp.exceptions.ControllerError

Exception raised when unlock() is called but the document is unlocked or the user is not allowed to unlock the document.

exception plmapp.exceptions.AddFileError[source]

Bases: plmapp.exceptions.ControllerError

Exception raised when an error occurs while adding a file to a document

exception plmapp.exceptions.DeleteFileError[source]

Bases: plmapp.exceptions.ControllerError

Exception raised when an error occurs while deleting a file from a document

exception plmapp.exceptions.PermissionError[source]

Bases: plmapp.exceptions.ControllerError

Exception raised when a user attempt to made an unauthorized action

exception plmapp.exceptions.PromotionError[source]

Bases: plmapp.exceptions.ControllerError

Exception raised when a user attempt to promote a non-promotable object