added iOS source code
[wl-app.git] / iOS / Pods / AEXML / Sources / Error.swift
1 import Foundation
2
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.
6     case elementNotFound
7     
8     /// This will be inside `error` property of `AEXMLDocument` when there is no root element.
9     case rootElementMissing
10     
11     /// `AEXMLDocument` can throw this error on `init` or `loadXMLData` if parsing with `XMLParser` was not successful.
12     case parsingFailed
13 }