#[derive(thiserror::Error, Debug)]
pub enum BpmnParsingError {
#[error("CouldNotFindDataAssociation")]
CouldNotFindDataAssociation,
#[error("After the start tag '{}', we expect text", .tag)]
ExpectedTextStart{tag:&'static str},
#[error("After some text, we expect the end tag '{}'", .tag)]
ExpectedTextEnd{tag:&'static str},
#[error("ExpectedEventType")]
ExpectedEventType,
#[error("ExpectedGatewayType")]
ExpectedGatewayType,
#[error("attribute {} missing under {}", .att, .parent)]
MissingAttribute{att:&'static str,parent:&'static str},
#[error(transparent)]
Xml(#[from] xml::reader::Error),
#[error("CouldNotOpenFile")]
CouldNotOpenFile,
#[error("UnknownActivityType")]
UnknownActivityType,
}