001package org.gbif.api.model.registry.metasync;
002
003/**
004 * Enumeration of all the different categories of results we want to report on during metadata synchronisation.
005 */
006public enum MetasyncResult {
007
008  /**
009   * The synchronization was successful.
010   */
011  OK,
012
013  /**
014   * Is any kind of error establishing a connection or during a connection that's usually on the network level
015   * (connection refused, timeouts etc.).
016   */
017  IO_EXCEPTION,
018
019  /**
020   * Any kind of HTTP error (e.g. a non 200 response code).
021   */
022  HTTP_ERROR,
023
024  /**
025   * This means that we got a reply from the endpoint but it does not conform to what we expected (e.g. HTML instead of
026   * XML).
027   */
028  PROTOCOL_ERROR,
029
030  /**
031   * Anything that doesn't fit in the former categories (e.g. invalid URI stored in our Registry).
032   */
033  OTHER_ERROR
034}