Skip to main content

Module error

Module error 

Source
Expand description

Failures the matrix and dataset builders raise.

Error carries what this crate constructs and wraps powerio_tx::Error for everything the transmission model raises underneath, so ? moves that failure across the boundary without restating it. A caller that only wants the coarse split reads Error::category, which is the same taxonomy the hub uses.

Structs§

ElementCounts
The element counts that define a scenario batch’s shared base shape. Named (rather than a bare (usize, usize, usize)) so the three same-typed fields can’t be transposed silently in an error message or a comparison.

Enums§

Error
A matrix, sensitivity, or dataset failure.
PiecewiseCostInvalidity
Why a MATPOWER model 1 generator cost row is unusable.
ScenarioMismatch
Why a gridfm scenario snapshot doesn’t line up with the first snapshot’s batch (the row stack uses each table’s row number as element identity).

Type Aliases§

Result
The result type every fallible entry point in this crate returns.