exception module
This module declares Substance 3D Painter specific exceptions.
class substance_painter.exception.ProjectError(value) substance_painter.exception.ProjectError
Raised when an operation or function is incompatible with the current
project, or when the current state of the project is invalid.
Trying to save a project when there is no project opened would raise aProjectError.
NOTE
The name used to define members is available as a string via the .name attribute (see python enum.Enum).
class substance_painter.exception.ResourceNotFoundError(value) substance_painter.exception.ResourceNotFoundError
Raised when a Substance 3D Painter resource could not be found.
Providing an invalid resource ID would raise a ResourceNotFoundError.
NOTE
The name used to define members is available as a string via the .name attribute (see python enum.Enum).
class substance_painter.exception.ServiceNotFoundError(value) substance_painter.exception.ServiceNotFoundError
Raised when an operation or function relies on a service which could not
be found. It could mean that the service has not been started yet.
Trying to execute a command while Substance 3D Painter is starting could
raise ServiceNotFoundError.
NOTE
The name used to define members is available as a string via the .name attribute (see python enum.Enum).
recommendation-more-help
substance-3d-dev-help-painter-python-guide