X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/53b27422d140022594fc241cca91c3183be57bca..48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff:/iOS/Pods/AEXML/Sources/Error.swift diff --git a/iOS/Pods/AEXML/Sources/Error.swift b/iOS/Pods/AEXML/Sources/Error.swift new file mode 100644 index 0000000..d598c95 --- /dev/null +++ b/iOS/Pods/AEXML/Sources/Error.swift @@ -0,0 +1,13 @@ +import Foundation + +/// A type representing error value that can be thrown or inside `error` property of `AEXMLElement`. +public enum AEXMLError: Error { + /// This will be inside `error` property of `AEXMLElement` when subscript is used for not-existing element. + case elementNotFound + + /// This will be inside `error` property of `AEXMLDocument` when there is no root element. + case rootElementMissing + + /// `AEXMLDocument` can throw this error on `init` or `loadXMLData` if parsing with `XMLParser` was not successful. + case parsingFailed +}