pub enum AnalysisError {
Show 25 variants
InvalidZoneId,
InvalidPrice {
field: &'static str,
},
InvalidZoneGeometry {
lower: f64,
upper: f64,
},
InvalidAnchorRange {
open: NaiveDateTime,
close: NaiveDateTime,
},
ConfirmationBeforeAnchorClose {
confirmed_at: NaiveDateTime,
anchor_close: NaiveDateTime,
},
InvalidSymbol {
symbol: String,
},
DuplicateSourceSeries,
TooManySourceSeries {
actual: usize,
maximum: usize,
},
ObservationNotYetValid {
valid_from: NaiveDateTime,
observed_through: NaiveDateTime,
},
ValueAfterObservation {
value_time: NaiveDateTime,
observed_through: NaiveDateTime,
},
ZeroLimit {
field: &'static str,
},
LimitTooLarge {
field: &'static str,
actual: usize,
maximum: usize,
},
TooManyAnalyzers {
actual: usize,
maximum: usize,
},
BoundaryRegression {
previous: NaiveDateTime,
current: NaiveDateTime,
},
BarAfterBoundary {
series_id: SeriesId,
close_time: NaiveDateTime,
observed_through: NaiveDateTime,
},
TooManyBoundaryObservations {
actual: usize,
maximum: usize,
},
BoundaryOutputOverflow,
SequenceOverflow,
OmittedCountOverflow,
PivotHistoryOverflow,
SeriesView(SeriesViewError),
Annotation(AnnotationError),
AnalyzerFailure {
analyzer_index: usize,
source: Box<AnalysisError>,
},
PipelineFailed,
Analyzer {
message: String,
},
}Expand description
Typed construction, causality, ordering, lookup, and pipeline failures.
Variants§
InvalidZoneId
InvalidPrice
InvalidZoneGeometry
InvalidAnchorRange
ConfirmationBeforeAnchorClose
InvalidSymbol
DuplicateSourceSeries
TooManySourceSeries
ObservationNotYetValid
ValueAfterObservation
ZeroLimit
LimitTooLarge
TooManyAnalyzers
BoundaryRegression
BarAfterBoundary
TooManyBoundaryObservations
BoundaryOutputOverflow
SequenceOverflow
OmittedCountOverflow
PivotHistoryOverflow
SeriesView(SeriesViewError)
Annotation(AnnotationError)
AnalyzerFailure
PipelineFailed
Analyzer
Trait Implementations§
Source§impl Debug for AnalysisError
impl Debug for AnalysisError
Source§impl Display for AnalysisError
impl Display for AnalysisError
Source§impl Error for AnalysisError
impl Error for AnalysisError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<FeedError, StrategyError> From<AnalysisError> for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> From<AnalysisError> for StrategyReplayError<FeedError, StrategyError>
Source§fn from(source: AnalysisError) -> Self
fn from(source: AnalysisError) -> Self
Converts to this type from the input type.
Source§impl From<AnnotationError> for AnalysisError
impl From<AnnotationError> for AnalysisError
Source§fn from(source: AnnotationError) -> Self
fn from(source: AnnotationError) -> Self
Converts to this type from the input type.
Source§impl From<SeriesViewError> for AnalysisError
impl From<SeriesViewError> for AnalysisError
Source§fn from(source: SeriesViewError) -> Self
fn from(source: SeriesViewError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnalysisError
impl RefUnwindSafe for AnalysisError
impl Send for AnalysisError
impl Sync for AnalysisError
impl Unpin for AnalysisError
impl UnsafeUnpin for AnalysisError
impl UnwindSafe for AnalysisError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more