TaxonomyError
public enum TaxonomyError : Error
An error type that describes errors originated from the TaxonomyKit methods.
- networkError: A network error. More details can be found inspecting the associated error object.
- parseError: An error due to a malformed XML/JSON object.
- unexpectedResponseError: An unexpected server response (other than 200) from the NCBI servers.
- unregisteredTaxa: An unexpected taxon passed to a LineageTree method.
- insufficientTaxa: Too few taxa passed to a LineageTree method.
- incompatibleNodes: Thrown when passed nodes are registered in different LineageTree objects.
- unknownError: Any other error, including unexpected structure or missing values in XML/JSON data.
-
A network error. More details can be found inspecting the associated error object.
Declaration
Swift
case networkError(underlyingError: Error) -
An error due to a malformed XML/JSON object.
Declaration
Swift
case parseError(message: String) -
An unexpected server response (other than 200) from the NCBI servers.
Declaration
Swift
case unexpectedResponse(code: Int) -
An unexpected taxon passed to a LineageTree method.
Declaration
Swift
case unregisteredTaxa -
Too few taxa passed to a LineageTree method.
Declaration
Swift
case insufficientTaxa -
Thrown when passed nodes are registered in different LineageTree objects.
Declaration
Swift
case incompatibleNodes -
Any other error, including unexpected structure or missing values in XML/JSON data.
Declaration
Swift
case unknownError -
Undocumented
Declaration
Swift
public var localizedDescription: String { get }
View on GitHub
Install in Dash
TaxonomyError Enumeration Reference