3 /// A type representing error value that can be thrown or inside `error` property of `AEXMLElement`.
4 public enum AEXMLError: Error {
5 /// This will be inside `error` property of `AEXMLElement` when subscript is used for not-existing element.
8 /// This will be inside `error` property of `AEXMLDocument` when there is no root element.
9 case rootElementMissing
11 /// `AEXMLDocument` can throw this error on `init` or `loadXMLData` if parsing with `XMLParser` was not successful.