osu_file_parser/osu_file/events/
error.rs1use thiserror::Error;
2
3use super::{storyboard::error::*, *};
4
5#[derive(Debug, Error)]
7#[non_exhaustive]
8pub enum ParseError {
9 #[error("Invalid colon set, expected format of `key: value`")]
11 InvalidColonSet,
12 #[error("The key doesn't exist in `General`")]
14 InvalidKey,
15 #[error("A storyboard command was used without defined sprite or animation sprite")]
17 StoryboardCmdWithNoSprite,
18 #[error(transparent)]
19 ParseBackgroundError(#[from] ParseBackgroundError),
20 #[error(transparent)]
21 ParseVideoError(#[from] ParseVideoError),
22 #[error(transparent)]
23 ParseBreakError(#[from] ParseBreakError),
24 #[error(transparent)]
25 ParseColourTransformationError(#[from] ParseColourTransformationError),
26 #[error(transparent)]
27 ParseSpriteLegacyError(#[from] ParseSpriteLegacyError),
28 #[error(transparent)]
29 ParseAnimationLegacyError(#[from] ParseAnimationLegacyError),
30 #[error(transparent)]
31 ParseSampleLegacyError(#[from] ParseSampleLegacyError),
32 #[error(transparent)]
33 CommandPushError(#[from] CommandPushError),
34 #[error(transparent)]
35 ParseCommandError(#[from] ParseCommandError),
36 #[error(transparent)]
38 ParseStoryboardObjectError(#[from] ParseObjectError),
39 #[error(transparent)]
40 ParseAudioSampleError(#[from] ParseAudioSampleError),
41 #[error("Event type doesn't exist on version")]
43 EventNotExistOnVersion,
44 #[error("Unknown event type")]
46 UnknownEventType,
47}