| 1234567891011121314151617181920212223242526 |
- /**
- * https://github.com/tadija/AEXML
- * Copyright (c) Marko Tadić 2014-2019
- * Licensed under the MIT license. See LICENSE file.
- */
- import Foundation
- #if canImport(FoundationXML)
- import FoundationXML
- #endif
- /// A type representing error value that can be thrown or inside `error` property of `XMLElement`.
- public enum XMLError: Error {
- /// This error can be raise when the value conversion has failed.
- case valueConversionFailed
- /// This will be inside `error` property of `XMLElement` when subscript is used for not-existing element.
- case elementNotFound
- /// This will be inside `error` property of `XMLDocument` when there is no root element.
- case rootElementMissing
- /// `XMLDocument` can throw this error on `init` or `loadXMLData` if parsing with `XMLParser` was not successful.
- case parsingFailed
- }
|