Skip to main content

Overview

SpecklePy defines custom exception types that inherit from SpeckleException. 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.
Common causes:
  • Invalid object IDs
  • Resource not found
  • Permission denied
  • Server errors
Example:

SerializationException

Raised when object serialization or deserialization fails.
Common causes:
  • Non-Speckle objects without conversion
  • Circular references
  • Unsupported data types

UnsupportedException

Raised when an operation or feature is not supported.
Common causes:
  • 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.
Common causes:
  • Insufficient workspace permissions
  • Workspace features not available on server
  • Not a member of the workspace

SpeckleClient

Client operations

Operations

Send/receive operations
Last modified on July 18, 2026