perfgate-error
Unified error types for the perfgate ecosystem.
Part of the perfgate workspace.
Overview
This crate provides a single, comprehensive error type (PerfgateError) that
unifies all error variants across the perfgate crates, enabling seamless error
propagation and conversion.
Error Categories
| Category | Type | Description |
|---|---|---|
| Validation | ValidationError |
Bench name and input validation |
| Stats | StatsError |
Statistical computation errors |
| Adapter | AdapterError |
Process execution, timeout, platform |
| Config | ConfigValidationError |
Configuration parsing/validation |
| IO | IoError |
File system and network I/O |
| Paired | PairedError |
Paired benchmark errors |
Key API
PerfgateError— unified error enum withFromimpls for all sub-errorsValidationError— bench name validation errorsvalidate_bench_name(name)— validate a bench name against naming rulesErrorCategory— categorization enum for error routingResult<T>— type alias forstd::result::Result<T, PerfgateError>
Example
use ;
let err = check.unwrap_err;
assert!;
assert_eq!;
License
Licensed under either Apache-2.0 or MIT.