pub enum ScheduleError {
QuantityTooLong(u64),
InvalidId(&'static str),
InvalidRevision {
field: &'static str,
maximum: u16,
value: u16,
},
InvalidRecipient(&'static str),
InvalidTime(&'static str),
DayOutsideSchemaRange,
EmptySchedule,
DuplicateId(String),
InvalidParties(String),
DuplicateTrade(String),
IntervalCount {
id: String,
expected: usize,
actual: usize,
},
OverlappingFlows {
id: String,
position: usize,
},
}Expand description
Reason a nomination cannot be encoded as a German ESS 2.3 schedule.
Variants§
QuantityTooLong(u64)
The shortest exact MW representation is wider than the wire field.
InvalidId(&'static str)
Message or series ID violates the ESS alphanumeric grammar.
InvalidRevision
Revision lies outside the permitted range.
Fields
InvalidRecipient(&'static str)
The EIC supplied for a control area or recipient belongs to the wrong class.
InvalidTime(&'static str)
The XML time format cannot represent an instant or day boundary.
DayOutsideSchemaRange
The interval falls outside the contiguous years qualified against the ESS core schema.
EmptySchedule
An A02 trade nomination requires at least one series.
DuplicateId(String)
The series ID appears more than once in the document.
InvalidParties(String)
A series must connect the sender and a distinct Bilanzkreis.
DuplicateTrade(String)
Two series describe the same directional flow.
IntervalCount
Series coverage differs from the length of the delivery day.
Fields
OverlappingFlows
A quarter-hour contains delivery in both directions for a pair.
Trait Implementations§
Source§impl Debug for ScheduleError
impl Debug for ScheduleError
Source§impl Display for ScheduleError
impl Display for ScheduleError
impl Eq for ScheduleError
Source§impl Error for ScheduleError
impl Error for ScheduleError
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()