Enum FpmlError
#[non_exhaustive]pub enum FpmlError {
Malformed(String),
Namespace {
found: Option<String>,
},
Missing {
element: String,
under: String,
},
Unsupported {
element: String,
stream: Option<usize>,
},
UnknownIndex {
scheme: String,
tenor: String,
},
Value {
element: String,
text: String,
reason: String,
},
Build(String),
Pricing(String),
Party {
selector: String,
matched: usize,
parties: Vec<String>,
},
Reference {
kind: String,
key: String,
},
Disagrees {
field: String,
stated: String,
master: String,
},
}Expand description
Why a document could not be read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Malformed(String)
The text is not well-formed XML.
Namespace
The root element is not in the FpML 5 confirmation namespace.
Missing
A required element is absent.
Unsupported
An element the reader does not handle changes the economics.
Fields
UnknownIndex
A floating-rate index the registry does not carry.
Value
An element’s text is not the value its type requires.
Build(String)
The stated terms could not be built into a schedule or a swap.
Pricing(String)
The trade read but the market could not price it.
Party
The reporting-party selector matched no party, or more than one, or the selected party is not a party to the product.
Fields
Reference
A reference the trade makes is not in the master the caller supplied: a counterparty, a security, a credit entity.
Disagrees
A term the document restates disagrees with the master’s.
Trait Implementations§
§impl Error for FpmlError
impl Error for FpmlError
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()