added iOS source code
[wl-app.git] / 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 (file)
index 0000000..d598c95
--- /dev/null
@@ -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
+}