Debian Codegraph @

src/parser/error.rs

raw symbols SCIP
1 #![allow(clippy::module_name_repetitions)]
2 use thiserrorrust-analyzer cargo thiserror 2.0.12 crate/::Errorrust-analyzer cargo thiserror-impl 2.0.12 Error:;
3
4 #[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:)]
5 pub enum ParseErrorrust-analyzer cargo rrule 0.14.0 parser/error/ParseError# {
6 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid timezone.")]
7 InvalidTimezonerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidTimezone#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
8 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{value}` is not a valid datetime format for `{property}`.")]
9 InvalidDateTimerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidDateTime# { valuerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidDateTime#value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, propertyrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidDateTime#property.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# },
10 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid datetime format.")]
11 InvalidDateTimeFormatrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidDateTimeFormat#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
12 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("{property}:{value} is not a valid datetime in local timezone.")]
13 InvalidDateTimeInLocalTimezonerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidDateTimeInLocalTimezone# { valuerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidDateTimeInLocalTimezone#value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, propertyrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidDateTimeInLocalTimezone#property.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# },
14 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("{property}:{value} is not a valid datetime in local timezone. This value is ambiguous and can be `{date1}` or `{date2}`")]
15 DateTimeInLocalTimezoneIsAmbiguousrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DateTimeInLocalTimezoneIsAmbiguous# {
16 valuerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DateTimeInLocalTimezoneIsAmbiguous#value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
17 propertyrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DateTimeInLocalTimezoneIsAmbiguous#property.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
18 date1rust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DateTimeInLocalTimezoneIsAmbiguous#date1.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
19 date2rust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DateTimeInLocalTimezoneIsAmbiguous#date2.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
20 },
21 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid frequency.")]
22 InvalidFrequencyrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidFrequency#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
23 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid weekday. Valid values are `MO`, `TU`, `WE`, `TH`, `FR`, `SA` and `SU`.")]
24 InvalidWeekdayrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidWeekday#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
25 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid weekday start. Valid values are `MO`, `TU`, `WE`, `TH`, `FR`, `SA` and `SU`.")]
26 InvalidWeekdayStartrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidWeekdayStart#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
27 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYEASTER value.")]
28 InvalidByEasterrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidByEaster#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
29 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid INTERVAL value.")]
30 InvalidIntervalrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidInterval#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
31 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid COUNT value.")]
32 InvalidCountrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidCount#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
33 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYHOUR value. Expected a comma-separated list of values in range 0..=23, e.g. `1,3,4`")]
34 InvalidByHourrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidByHour#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
35 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYWEEKNO value. Expected a comma-separated list of values in range -53..=53, e.g. `-1,30,53`")]
36 InvalidByWeekNorust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidByWeekNo#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
37 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYYEARDAY value. Expected a comma-separated list of values in range -366..=366, e.g. `-100,`")]
38 InvalidByYearDayrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidByYearDay#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
39 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYMONTHDAY value. Expected a comma-separated list of values in range -31..=31, e.g. `-30,10`")]
40 InvalidByMonthDayrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidByMonthDay#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
41 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYMONTH value. Expected a comma-separated list of values in range 1..=12, e.g. `6,9,10`")]
42 InvalidByMonthrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidByMonth#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
43 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYMINUTE value. Expected a comma-separated list of values in range 0..=59, e.g. `0,15,30,45`")]
44 InvalidByMinuterust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidByMinute#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
45 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYSECOND value. Expected a comma-separated list of values in range 0..=59, e.g. `0,15,30,45`")]
46 InvalidBySecondrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidBySecond#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
47 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid BYSETPOS value. Expected a comma-separated list of integers, e.g. `-3,1`")]
48 InvalidBySetPosrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidBySetPos#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
49 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("The property `{0}` wasn't found, and it is required.")]
50 MissingPropertyrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#MissingProperty#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
51 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
52 "`{0}` is a malformed property parameter. Parameter should be specified as `key=value`"
53 )]
54 InvalidParameterFormatrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#InvalidParameterFormat#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
55 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("`{0}` is not a valid property parameter.")]
56 UnrecognizedParameterrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#UnrecognizedParameter#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
57 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("Found duplicate property for `{0}`, properties and parameters need to be unique.")]
58 DuplicatePropertyrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DuplicateProperty#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
59 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("Missing start date. There needs to be a unique start date which the iteration can start from.")]
60 MissingStartDaterust-analyzer cargo rrule 0.14.0 parser/error/ParseError#MissingStartDate#,
61 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("Missing date generation property. There needs to be at least one `RRULE` or `RDATE` to generate occurrences.")]
62 MissingDateGenerationRulesrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#MissingDateGenerationRules#,
63 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("Property parameters aren't supported for RRULE / EXRULE, found parameters: `{0}`")]
64 PropertyParametersNotSupportedrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#PropertyParametersNotSupported#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
65 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
66 "`{0}` is not a valid property name, expected one of: `RRULE,EXRULE,DTSTART,RDATE,EXDATE`"
67 )]
68 UnrecognizedPropertyNamerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#UnrecognizedPropertyName#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
69 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
70 "The value of `DTSTART` and `UNTIL` needs to match. Both need to be either a `DATE` or `DATE-TIME`"
71 )]
72 DtStartUntilMismatchValuerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DtStartUntilMismatchValue#,
73 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:(
74 "The value of `DTSTART` was specified in local timezone, but `UNTIL` was specified with a zulu time when it had to be specified in local time as well"
75 )]
76 DtStartUntilMismatchTimezonerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#DtStartUntilMismatchTimezone#,
77 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("Property parameter `{parameter}` was set to have value `{parameter_value}`, but found `{found_value}` ")]
78 ParameterValueMismatchrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#ParameterValueMismatch# {
79 parameterrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#ParameterValueMismatch#parameter.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
80 parameter_valuerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#ParameterValueMismatch#parameter_value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
81 found_valuerust-analyzer cargo rrule 0.14.0 parser/error/ParseError#ParameterValueMismatch#found_value.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
82 },
83 }