use thiserror::Error;
use super::{storyboard::error::*, *};
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum ParseError {
#[error("Invalid colon set, expected format of `key: value`")]
InvalidColonSet,
#[error("The key doesn't exist in `General`")]
InvalidKey,
#[error("A storyboard command was used without defined sprite or animation sprite")]
StoryboardCmdWithNoSprite,
#[error(transparent)]
ParseBackgroundError(#[from] ParseBackgroundError),
#[error(transparent)]
ParseVideoError(#[from] ParseVideoError),
#[error(transparent)]
ParseBreakError(#[from] ParseBreakError),
#[error(transparent)]
ParseColourTransformationError(#[from] ParseColourTransformationError),
#[error(transparent)]
ParseSpriteLegacyError(#[from] ParseSpriteLegacyError),
#[error(transparent)]
ParseAnimationLegacyError(#[from] ParseAnimationLegacyError),
#[error(transparent)]
ParseSampleLegacyError(#[from] ParseSampleLegacyError),
#[error(transparent)]
CommandPushError(#[from] CommandPushError),
#[error(transparent)]
ParseCommandError(#[from] ParseCommandError),
#[error(transparent)]
ParseStoryboardObjectError(#[from] ParseObjectError),
#[error(transparent)]
ParseAudioSampleError(#[from] ParseAudioSampleError),
#[error("Event type doesn't exist on version")]
EventNotExistOnVersion,
#[error("Unknown event type")]
UnknownEventType,
}