- Substance 3D home
- Painter Python API
- API
- Tutorials
exception
exception module
This module declares Substance 3D Painter specific exceptions.
- class substance_painter.exception.
ProjectError
ProjectError(value) 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 a
ProjectError
.
- class substance_painter.exception.
ResourceNotFoundError
ResourceNotFoundError(value) Raised when a Substance 3D Painter resource could not be found.
Providing an invalid resource ID would raise a
ResourceNotFoundError
.
- class substance_painter.exception.
ServiceNotFoundError
ServiceNotFoundError(value) 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
.