Debian Codegraph @

src/validator/error.rs

raw symbols SCIP
1 #![allow(clippy::module_name_repetitions)]
2
3 use thiserrorrust-analyzer cargo thiserror 2.0.12 crate/::Errorrust-analyzer cargo thiserror-impl 2.0.12 Error:;
4
5 use craterust-analyzer cargo rrule 0.14.0 crate/::Frequencyrust-analyzer cargo rrule 0.14.0 core/rrule/Frequency#;
6
7 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Errorrust-analyzer cargo thiserror-impl 2.0.12 Error:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:)]
8 pub enum ValidationErrorrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError# {
9 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("BYSETPOS should only be used in conjunction with another BYxxx rule part.")]
10 BySetPosWithoutByRulerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#BySetPosWithoutByRule#,
11 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{field}` can't be `{value}`, must be larger or smaller then `{value}`.")]
12 InvalidFieldValuerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValue# { fieldrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValue#field.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, valuerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValue#value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# },
13 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
14 "`{field}` is `{value}`, but is not allowed outside the range: `{start_idx}..={end_idx}`."
15 )]
16 InvalidFieldValueRangerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRange# {
17 fieldrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRange#field.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
18 valuerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRange#value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
19 start_idxrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRange#start_idx.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
20 end_idxrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRange#end_idx.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
21 },
22 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
23 "`{field}` is `{value}`, but with the current frequency ({freq}) is not allowed \
24 outside the range: `{start_idx}..={end_idx}`."
25 )]
26 InvalidFieldValueRangeWithFreqrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRangeWithFreq# {
27 fieldrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRangeWithFreq#field.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
28 valuerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRangeWithFreq#value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
29 freqrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRangeWithFreq#freq.: Frequencyrust-analyzer cargo rrule 0.14.0 core/rrule/Frequency#,
30 start_idxrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRangeWithFreq#start_idx.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
31 end_idxrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidFieldValueRangeWithFreq#end_idx.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
32 },
33 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{by_rule}` can not be used with the current frequency ({freq}).")]
34 InvalidByRuleAndFrequencyrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidByRuleAndFrequency# { by_rulerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidByRuleAndFrequency#by_rule.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, freqrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidByRuleAndFrequency#freq.: Frequencyrust-analyzer cargo rrule 0.14.0 core/rrule/Frequency# },
35 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`UNTIL` is `{until}`, but `DTSTART` (`{dt_start}`) is later. That should not be happening.")]
36 UntilBeforeStartrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#UntilBeforeStart# { untilrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#UntilBeforeStart#until.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, dt_startrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#UntilBeforeStart#dt_start.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# },
37 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
38 "`INTERVAL` is `{0}`, is higher than expected, make sure this is correct. \
39 See 'validator limits' in docs for more info."
40 )]
41 TooBigIntervalrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#TooBigInterval#(u16),
42 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
43 "`DTSTART` year is `{0}`, is higher/lower than expected, make sure this is correct. \
44 See 'validator limits' in docs for more info."
45 )]
46 StartYearOutOfRangerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#StartYearOutOfRange#(i32),
47 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
48 "Unable to generate a timeset for the RRULE. Please specify a BYHOUR, BYMINUTE or BYSECOND"
49 )]
50 UnableToGenerateTimesetrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#UnableToGenerateTimeset#,
51 #[cfg(feature = "by-easter")]
52 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`BYEASTER` can only be used when `BYHOUR`, `BYMINUTE` and `BYSECOND` are set.")]
53 InvalidByRuleWithByEasterrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#InvalidByRuleWithByEaster#,
54 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
55 "The value of `DTSTART` was specified in {dt_start_tz} timezone, but `UNTIL` was specified in timezone {until_tz}. Allowed timezones for `UNTIL` with the given start date timezone are: `{expected:?}`"
56 )]
57 DtStartUntilMismatchTimezonerust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#DtStartUntilMismatchTimezone# {
58 dt_start_tzrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#DtStartUntilMismatchTimezone#dt_start_tz.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
59 until_tzrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#DtStartUntilMismatchTimezone#until_tz.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
60 expectedrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#DtStartUntilMismatchTimezone#expected.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
61 },
62 }