Enum SyncError

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SyncError>

    public enum SyncError
    extends java.lang.Enum<SyncError>
    SyncError indicates errors that can occur while performing user synchronization operations.
    • Enum Constant Detail

      • UNKNOWN

        public static final SyncError UNKNOWN
        Unknown error has occurred.
      • BAD_REQUEST

        public static final SyncError BAD_REQUEST
        Bad request. Invalid or missing required parameters.
      • SERVICE_NOT_FOUND

        public static final SyncError SERVICE_NOT_FOUND
        Service is not available.
      • INTERNAL_ERROR

        public static final SyncError INTERNAL_ERROR
        Internal server error.
      • ERROR_BAD_RESPONSE

        public static final SyncError ERROR_BAD_RESPONSE
        Bad response from server.
      • ERROR_CONNECTION_ERROR

        public static final SyncError ERROR_CONNECTION_ERROR
        Failed to reach server.
      • CONFLICT_NOT_FOUND

        public static final SyncError CONFLICT_NOT_FOUND
        Conflicts not found.
      • CONFLICT_RESOLUTION_NEEDED

        public static final SyncError CONFLICT_RESOLUTION_NEEDED
        Conflicts resolution is needed.
      • ERROR_CONFLICTS

        public static final SyncError ERROR_CONFLICTS
        Conflicts found.
      • ERROR_SYNC_ERROR

        public static final SyncError ERROR_SYNC_ERROR
        Sync failed.
      • ERROR_SYNC_IN_PROGRESS

        public static final SyncError ERROR_SYNC_IN_PROGRESS
        Sync is in progress.
    • Method Detail

      • values

        public static SyncError[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SyncError c : SyncError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SyncError valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null