Skip to content

solidworks_mcp.exceptions

solidworks_mcp.exceptions

Custom exceptions for SolidWorks MCP Server.

Classes

AuthenticationError

Bases: SolidWorksMCPError

Exception raised for authentication failures.

ConfigurationError

Bases: SolidWorksMCPError

Exception raised for configuration issues.

InputRefused

Bases: ValueError

The adapter checked an input against the document and refused it.

An expected answer, not a fault: a section line that misses its view, a point with nothing to dimension. It is logged as one line, without a traceback, and the tools classify it as invalid_input.

RateLimitError

Bases: SolidWorksMCPError

Exception raised when rate limit is exceeded.

SolidWorksConnectionError

Bases: SolidWorksMCPError

Exception raised when SolidWorks connection fails.

SolidWorksMCPError

Bases: Exception

Base exception for SolidWorks MCP Server errors.

SolidWorksOperationError

Bases: SolidWorksMCPError

Exception raised when SolidWorks operation fails.