pub enum Error {
Build(String),
Unsupported {
name: String,
what: String,
},
Elab(String),
Singular(String),
IterLim,
Timestep {
time: f64,
},
StepLimit {
steps: usize,
time: f64,
},
PssConvergence {
iterations: usize,
residuals: Vec<f64>,
period: Option<f64>,
},
UnknownVector(String),
}Variants§
Build(String)
Bad programmatic construction (duplicate name, zero-valued resistor, dangling reference, …).
Unsupported
The deck uses a device the engine does not implement yet.
Elab(String)
The deck could not be elaborated into a circuit.
Singular(String)
Singular MNA matrix (floating node, voltage-source loop, …).
IterLim
NIiter gave up (E_ITERLIM).
Timestep
The transient step shrank below delmin (E_TIMESTEP).
StepLimit
The transient attempted more internal timepoints than
Options::max_tran_steps
allows — Dune’s guard against runaway breakpoint cascades
(D-0022); neither the 3f5 nor ngspice enforces ITL5.
PssConvergence
.pss: the shooting iterations did not bring the period
mismatch x(t₀+T) − x(t₀) within tolerance. residuals holds
each iteration’s mismatch in units of the tolerance
(Pss::residuals). period is the
last period iterate of an autonomous oscillator (where T is
a Newton unknown); None for a driven circuit, whose period
is fixed.
UnknownVector(String)
An output selection named a vector the solution does not have.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()