> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.conductorquantum.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.conductorquantum.com/_mcp/server.

# stanza.exceptions



### API

```python
class stanza.exceptions.InstrumentError(message: str)
```

**Bases**: `RuntimeError`

Exception raised when an instrument operation fails.

### Initialization

Initialize self.  See help(type(self)) for accurate signature.


```python
class stanza.exceptions.DeviceError(message: str)
```

**Bases**: `RuntimeError`

Exception raised when a device operation fails.

### Initialization

Initialize self.  See help(type(self)) for accurate signature.


```python
class stanza.exceptions.LoggingError(message: str, error_code: str | None = None)
```

**Bases**: `Exception`

Base exception for logging-related errors.

### Initialization

Initialize self.  See help(type(self)) for accurate signature.


```python
class stanza.exceptions.RoutineError(message: str)
```

**Bases**: `Exception`

Exception raised when a routine operation fails.

### Initialization

Initialize self.  See help(type(self)) for accurate signature.


```python
class stanza.exceptions.LoggerSessionError(message: str, session_id: str | None = None, error_code: str | None = None)
```

**Bases**: `stanza.exceptions.LoggingError`

Exception raised when a logging session operation fails.

### Initialization

Initialize self.  See help(type(self)) for accurate signature.


```python
class stanza.exceptions.WriterError(message: str, writer_type: str | None = None, file_path: str | None = None, error_code: str | None = None)
```

**Bases**: `stanza.exceptions.LoggingError`

Raised when data writer operations fail.

### Initialization

Initialize self.  See help(type(self)) for accurate signature.