Overview
SpecklePy defines custom exception types that inherit fromSpeckleException. Catch this base exception to handle all Speckle-related errors.
Exception Types
SpeckleException
Base exception for all Speckle-related errors.GraphQLException
Raised when GraphQL queries or mutations fail.- Invalid object IDs
- Resource not found
- Permission denied
- Server errors
SerializationException
Raised when object serialization or deserialization fails.- Non-Speckle objects without conversion
- Circular references
- Unsupported data types
UnsupportedException
Raised when an operation or feature is not supported.- Features unavailable on older server versions
- Unsupported object types
- Platform-specific features
SpeckleInvalidUnitException
Raised when invalid units are provided.WorkspacePermissionException
Raised when workspace operations fail due to insufficient permissions.- Insufficient workspace permissions
- Workspace features not available on server
- Not a member of the workspace