exceptions
Application-specific exceptions for snakesee.
This module provides a hierarchy of exceptions that enable more precise error handling throughout the application. Using specific exception types allows callers to catch and handle different error conditions appropriately.
Exception Hierarchy
SnakeseeError (base) ├── WorkflowError │ ├── WorkflowNotFoundError │ └── WorkflowParseError ├── ProfileError │ ├── ProfileNotFoundError │ └── InvalidProfileError ├── PluginError │ ├── PluginLoadError │ └── PluginExecutionError ├── ConfigurationError ├── ParsingError │ ├── LogParsingError │ └── MetadataParsingError ├── ValidationError │ ├── InvalidDurationError │ ├── ClockSkewError │ └── InvalidParameterError └── EventWriteError
Classes¶
ClockSkewError ¶
Bases: ValidationError
Raised when clock skew is detected (negative duration).
This typically occurs when system time has been adjusted between recording start_time and end_time for a job.
Attributes:
| Name | Type | Description |
|---|---|---|
start_time |
The recorded start time. |
|
end_time |
The recorded end time. |
|
context |
Description of where the error occurred. |
|
message |
Human-readable error description. |
Source code in snakesee/exceptions.py
ConfigurationError ¶
Bases: SnakeseeError
Raised when there is a configuration error.
Attributes:
| Name | Type | Description |
|---|---|---|
parameter |
The configuration parameter that is invalid. |
|
message |
Human-readable error description. |
Source code in snakesee/exceptions.py
EventWriteError ¶
Bases: SnakeseeError
Raised when writing events fails.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
The event file path. |
|
message |
Human-readable error description. |
|
cause |
The underlying exception, if any. |
Source code in snakesee/exceptions.py
InvalidDurationError ¶
Bases: ValidationError
Raised when a duration value is invalid.
Attributes:
| Name | Type | Description |
|---|---|---|
value |
The invalid duration value. |
|
context |
Description of where the error occurred. |
|
message |
Human-readable error description. |
Source code in snakesee/exceptions.py
InvalidParameterError ¶
Bases: ValidationError
Raised when a parameter value is invalid.
Attributes:
| Name | Type | Description |
|---|---|---|
parameter |
The parameter name. |
|
value |
The invalid value. |
|
constraint |
Description of the valid range/constraint. |
|
message |
Human-readable error description. |
Source code in snakesee/exceptions.py
InvalidProfileError ¶
Bases: ProfileError
Raised when a timing profile is invalid or corrupted.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
The profile path that was invalid. |
|
message |
Human-readable error description. |
|
cause |
The underlying exception, if any. |
Source code in snakesee/exceptions.py
LogParsingError ¶
Bases: ParsingError
Raised when parsing a log file fails.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
The log file path that could not be parsed. |
|
line_number |
The line number where the error occurred (if applicable). |
|
message |
Human-readable error description. |
|
cause |
The underlying exception, if any. |
Source code in snakesee/exceptions.py
MetadataParsingError ¶
Bases: ParsingError
Raised when parsing metadata files fails.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
The metadata file path that could not be parsed. |
|
message |
Human-readable error description. |
|
cause |
The underlying exception, if any. |
Source code in snakesee/exceptions.py
ParsingError ¶
Bases: SnakeseeError
Base exception for parsing-related errors.
PluginError ¶
Bases: SnakeseeError
Base exception for plugin-related errors.
PluginExecutionError ¶
Bases: PluginError
Raised when a plugin fails during execution.
Attributes:
| Name | Type | Description |
|---|---|---|
plugin_name |
Name of the plugin that failed. |
|
message |
Human-readable error description. |
|
cause |
The underlying exception, if any. |
Source code in snakesee/exceptions.py
PluginLoadError ¶
Bases: PluginError
Raised when a plugin fails to load.
Attributes:
| Name | Type | Description |
|---|---|---|
plugin_path |
Path to the plugin file or entry point name. |
|
message |
Human-readable error description. |
|
cause |
The underlying exception, if any. |
Source code in snakesee/exceptions.py
ProfileError ¶
Bases: SnakeseeError
Base exception for profile-related errors.
ProfileNotFoundError ¶
Bases: ProfileError
Raised when a timing profile is not found.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
The profile path that was not found. |
|
message |
Human-readable error description. |
Source code in snakesee/exceptions.py
SnakeseeError ¶
Bases: Exception
Base exception for all snakesee errors.
All application-specific exceptions inherit from this class, allowing callers to catch all snakesee errors with a single handler.
ValidationError ¶
Bases: SnakeseeError
Base exception for validation errors.
WorkflowError ¶
Bases: SnakeseeError
Base exception for workflow-related errors.
WorkflowNotFoundError ¶
Bases: WorkflowError
Raised when a workflow directory or .snakemake directory is not found.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
The path that was searched for. |
|
message |
Human-readable error description. |
Source code in snakesee/exceptions.py
WorkflowParseError ¶
Bases: WorkflowError
Raised when parsing workflow state fails.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
The file or directory that could not be parsed. |
|
message |
Human-readable error description. |
|
cause |
The underlying exception, if any. |