#[non_exhaustive]pub enum BuildError {
PipeInField {
field: &'static str,
},
MissingField {
field: &'static str,
spec: &'static str,
},
FieldValue {
field: &'static str,
spec: &'static str,
},
AlgorithmMustBeWritten {
curve: &'static str,
},
NoReadings,
TransactionMarkers {
reason: &'static str,
},
TooLong {
field: &'static str,
len: usize,
max: usize,
spec: &'static str,
},
Signer,
SelfCheck(&'static str),
}Expand description
Something went wrong building a record.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PipeInField
A field value contains |, which would make the record unreadable
[OCMF §JSON based OCMF Format].
MissingField
A required field was not set.
FieldValue
A field was set to a value outside the set its table defines.
Fields
AlgorithmMustBeWritten
SA was suppressed while signing on a curve that is not the default.
An absent SA means ECDSA-secp256r1-SHA256 [OCMF Tab. 22], so a
record signed on another curve without it is a record that misstates
its own algorithm.
NoReadings
RD would be empty.
TransactionMarkers
The transaction markers do not form a coherent record.
TooLong
A string field is longer than its table allows.
Fields
Signer
Signing failed inside the signer.
SelfCheck(&'static str)
The record this builder produced could not be read back, or did not verify against its own key.
A signing path that can emit an unverifiable record is worse than none, so every signature is checked before it is returned.
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
impl Eq for BuildError
Source§impl Error for BuildError
impl Error for BuildError
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()