Enumerations

The following enumerations are available globally.

  • A set of string-convertible values used to represent the different taxonomic ranks.

    See more

    Declaration

    Swift

    public enum TaxonomicRank : String, Comparable, CustomStringConvertible, Codable
  • 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.
    See more

    Declaration

    Swift

    public enum TaxonomyError : Error