Exceptions¶
Base¶
ObsidianError
¶
Bases: Exception
Base exception for all aiobsidian errors.
CLI exceptions¶
CLIError
¶
Bases: ObsidianError
Base exception for Obsidian CLI errors.
BinaryNotFoundError(message)
¶
CommandError(command, exit_code, stderr)
¶
Bases: CLIError
A CLI command exited with a non-zero status.
Attributes:
| Name | Type | Description |
|---|---|---|
command |
The CLI command that failed. |
|
exit_code |
Process exit code. |
|
stderr |
Standard error output. |
Source code in src/aiobsidian/_exceptions.py
CLITimeoutError(command, timeout)
¶
Bases: CLIError
A CLI command exceeded the timeout limit.
Attributes:
| Name | Type | Description |
|---|---|---|
command |
The CLI command that timed out. |
|
timeout |
Timeout value in seconds. |
Source code in src/aiobsidian/_exceptions.py
REST API exceptions¶
APIError(status_code, message, error_code=None)
¶
Bases: ObsidianError
Error returned by the Obsidian REST API.
Attributes:
| Name | Type | Description |
|---|---|---|
status_code |
HTTP status code of the response. |
|
message |
Error message from the API. |
|
error_code |
Optional numeric error code from the API. |
Source code in src/aiobsidian/_exceptions.py
AuthenticationError(status_code, message, error_code=None)
¶
Bases: APIError
HTTP 401 Unauthorized — invalid or missing API key.