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.