Enum Class GraphErrorCodes

java.lang.Object
java.lang.Enum<GraphErrorCodes>
com.microsoft.graph.core.GraphErrorCodes
All Implemented Interfaces:
Serializable, Comparable<GraphErrorCodes>, Constable

public enum GraphErrorCodes extends Enum<GraphErrorCodes>
The common Graph error codes
See Also:
  • Enum Constant Details

    • ACCESS_DENIED

      public static final GraphErrorCodes ACCESS_DENIED
      The collar doesn't have permission to perform the action
    • ACTIVITY_LIMIT_REACHED

      public static final GraphErrorCodes ACTIVITY_LIMIT_REACHED
      The app or user has been throttled
    • ASYNC_TASK_FAILED

      public static final GraphErrorCodes ASYNC_TASK_FAILED
      No description available
    • ASYNC_TASK_NOT_COMPLETED

      public static final GraphErrorCodes ASYNC_TASK_NOT_COMPLETED
      No description available
    • AUTHENTICATION_CANCELLED

      public static final GraphErrorCodes AUTHENTICATION_CANCELLED
      No description available
    • AUTHENTICATION_FAILURE

      public static final GraphErrorCodes AUTHENTICATION_FAILURE
      No description available
    • GENERAL_EXCEPTION

      public static final GraphErrorCodes GENERAL_EXCEPTION
      An unspecified error has occurred.
    • ERROR_ITEM_NOT_FOUND

      public static final GraphErrorCodes ERROR_ITEM_NOT_FOUND
      The resource could not be found, specific to the Exchange workload.
    • INVALID_RANGE

      public static final GraphErrorCodes INVALID_RANGE
      The specified byte range is invalid or unavailable.
    • INVALID_REQUEST

      public static final GraphErrorCodes INVALID_REQUEST
      The request is malformed or incorrect.
    • ITEM_NOT_FOUND

      public static final GraphErrorCodes ITEM_NOT_FOUND
      The resource could not be found.
    • MALWARE_DETECTED

      public static final GraphErrorCodes MALWARE_DETECTED
      Malware was detected in the requested resource.
    • NAME_ALREADY_EXISTS

      public static final GraphErrorCodes NAME_ALREADY_EXISTS
      The specified item name already exists.
    • NOT_ALLOWED

      public static final GraphErrorCodes NOT_ALLOWED
      The action is not allowed by the system.
    • NOT_SUPPORTED

      public static final GraphErrorCodes NOT_SUPPORTED
      The request is not supported by the system.
    • QUOTA_LIMIT_REACHED

      public static final GraphErrorCodes QUOTA_LIMIT_REACHED
      The user has reached their quota limit.
    • RESOURCE_MODIFIED

      public static final GraphErrorCodes RESOURCE_MODIFIED
      The resource being updated has changed since the caller last read it, usually an eTag mismatch.
    • RESYNC_REQUIRED

      public static final GraphErrorCodes RESYNC_REQUIRED
      The delta token is no longer valid, and the app must reset the sync state.
    • SERVICE_NOT_AVAILABLE

      public static final GraphErrorCodes SERVICE_NOT_AVAILABLE
      The service is not available. Try the request again after a delay. There may be a Retry-After header.
    • TOO_MANY_REDIRECTS

      public static final GraphErrorCodes TOO_MANY_REDIRECTS
      The application is sending too many requests to the service. Try the request again after a delay. There may be a Retry-After header.
    • UNAUTHENTICATED

      public static final GraphErrorCodes UNAUTHENTICATED
      The caller is not authenticated.
    • ACCESS_RESTRICTED

      public static final GraphErrorCodes ACCESS_RESTRICTED
      No description available
    • AUTHORIZATION_REQUEST_DENIED

      public static final GraphErrorCodes AUTHORIZATION_REQUEST_DENIED
      Access restricted to the item's owner.
    • CANNOT_SNAPSHOT_TREE

      public static final GraphErrorCodes CANNOT_SNAPSHOT_TREE
      Failed to get a consistent delta snapshot. Try again later.
    • CHILD_ITEM_COUNT_EXCEEDED

      public static final GraphErrorCodes CHILD_ITEM_COUNT_EXCEEDED
      Max limit on the number of child items was reached.
    • ERROR_INVALID_ID_MALFORMED

      public static final GraphErrorCodes ERROR_INVALID_ID_MALFORMED
      No description available
    • ERROR_INVALID_USER

      public static final GraphErrorCodes ERROR_INVALID_USER
      No description available
    • ENTITY_TAG_DOES_NOT_MATCH

      public static final GraphErrorCodes ENTITY_TAG_DOES_NOT_MATCH
      ETag does not match the current item's value.
    • FRAGMENT_LENGTH_MISMATCH

      public static final GraphErrorCodes FRAGMENT_LENGTH_MISMATCH
      Declared total size for this fragment is different from that of the upload session.
    • FRAGMENT_OUT_OF_ORDER

      public static final GraphErrorCodes FRAGMENT_OUT_OF_ORDER
      Uploaded fragment is out of order.
    • FRAGMENT_OVERLAP

      public static final GraphErrorCodes FRAGMENT_OVERLAP
      Uploaded fragment overlaps with existing data.
    • INVALID_ACCEPT_TYPE

      public static final GraphErrorCodes INVALID_ACCEPT_TYPE
      Invalid accept type.
    • INVALID_PARAMETER_FORMAT

      public static final GraphErrorCodes INVALID_PARAMETER_FORMAT
      Invalid parameter format.
    • INVALID_PATH

      public static final GraphErrorCodes INVALID_PATH
      Name contains invalid characters.
    • INVALID_QUERY_OPTION

      public static final GraphErrorCodes INVALID_QUERY_OPTION
      Invalid query option.
    • INVALID_START_INDEX

      public static final GraphErrorCodes INVALID_START_INDEX
      Invalid start index.
    • LOCK_MISMATCH

      public static final GraphErrorCodes LOCK_MISMATCH
      Lock token does not match existing lock.
    • LOCK_NOT_FOUND_OR_ALREADY_EXPIRED

      public static final GraphErrorCodes LOCK_NOT_FOUND_OR_ALREADY_EXPIRED
      There is currently no unexpired lock on the item.
    • LOCK_OWNER_MISMATCH

      public static final GraphErrorCodes LOCK_OWNER_MISMATCH
      Lock Owner ID does not match provided ID.
    • MALFORMED_ENTITY_TAG

      public static final GraphErrorCodes MALFORMED_ENTITY_TAG
      ETag header is malformed. ETags must be quoted strings.
    • MAX_DOCUMENT_COUNT_EXCEEDED

      public static final GraphErrorCodes MAX_DOCUMENT_COUNT_EXCEEDED
      Max limit on number of Documents is reached.
    • MAX_FILE_SIZE_EXCEEDED

      public static final GraphErrorCodes MAX_FILE_SIZE_EXCEEDED
      Max file size exceeded.
    • MAX_FOLDER_COUNT_EXCEEDED

      public static final GraphErrorCodes MAX_FOLDER_COUNT_EXCEEDED
      Max limit on number of Folders is reached.
    • MAX_FRAGMENT_LENGTH_EXCEEDED

      public static final GraphErrorCodes MAX_FRAGMENT_LENGTH_EXCEEDED
      Max file size exceeded.
    • MAX_ITEM_COUNT_EXCEEDED

      public static final GraphErrorCodes MAX_ITEM_COUNT_EXCEEDED
      Max limit on number of Items is reached.
    • MAX_QUERY_LENGTH_EXCEEDED

      public static final GraphErrorCodes MAX_QUERY_LENGTH_EXCEEDED
      Max query length exceeded.
    • MAX_STREAM_SIZE_EXCEEDED

      public static final GraphErrorCodes MAX_STREAM_SIZE_EXCEEDED
      Maximum stream size exceeded.
    • PARAMETER_IS_TOO_LONG

      public static final GraphErrorCodes PARAMETER_IS_TOO_LONG
      Parameter Exceeds Maximum Length.
    • PARAMETER_IS_TOO_SMALL

      public static final GraphErrorCodes PARAMETER_IS_TOO_SMALL
      Parameter is smaller then minimum value.
    • PATH_IS_TOO_LONG

      public static final GraphErrorCodes PATH_IS_TOO_LONG
      Path exceeds maximum length.
    • PATH_TOO_DEEP

      public static final GraphErrorCodes PATH_TOO_DEEP
      Folder hierarchy depth limit reached.
    • PROPERTY_NOT_UPDATEABLE

      public static final GraphErrorCodes PROPERTY_NOT_UPDATEABLE
      Property not updateable.
    • RESYNC_APPLY_DIFFERENCES

      public static final GraphErrorCodes RESYNC_APPLY_DIFFERENCES
      Resync required. Replace any local items with the server's version (including deletes) if you're sure that the service was up to date with your local changes when you last sync'd. Upload any local changes that the server doesn't know about.
    • RESYNC_UPLOAD_DIFFERENCES

      public static final GraphErrorCodes RESYNC_UPLOAD_DIFFERENCES
      Resync required. Upload any local items that the service did not return, and upload any files that differ from the server's version (keeping both copies if you're not sure which one is more up-to-date).
    • SERVICE_READ_ONLY

      public static final GraphErrorCodes SERVICE_READ_ONLY
      Resource is temporarily read-only.
    • THROTTLED_REQUEST

      public static final GraphErrorCodes THROTTLED_REQUEST
      Too many requests.
    • TOO_MANY_RESULTS_REQUESTED

      public static final GraphErrorCodes TOO_MANY_RESULTS_REQUESTED
      Too many results requested.
    • TOO_MANY_TERMS_IN_QUERY

      public static final GraphErrorCodes TOO_MANY_TERMS_IN_QUERY
      Too many terms in the query.
    • TOTAL_AFFECTED_ITEM_COUNT_EXCEEDED

      public static final GraphErrorCodes TOTAL_AFFECTED_ITEM_COUNT_EXCEEDED
      Operation is not allowed because the number of affected items exceeds threshold.
    • TRUNCATION_NOT_ALLOWED

      public static final GraphErrorCodes TRUNCATION_NOT_ALLOWED
      Data truncation is not allowed.
    • UPLOAD_SESSION_FAILED

      public static final GraphErrorCodes UPLOAD_SESSION_FAILED
      Upload session failed.
    • UPLOAD_SESSION_INCOMPLETE

      public static final GraphErrorCodes UPLOAD_SESSION_INCOMPLETE
      Upload session incomplete.
    • UPLOAD_SESSION_NOT_FOUND

      public static final GraphErrorCodes UPLOAD_SESSION_NOT_FOUND
      Upload session not found.
    • VIRUS_SUSPICIOUS

      public static final GraphErrorCodes VIRUS_SUSPICIOUS
      This document is suspicious and may have a virus.
    • ZERO_OR_FEWER_RESULTS_REQUESTED

      public static final GraphErrorCodes ZERO_OR_FEWER_RESULTS_REQUESTED
      Zero or fewer results requested.
  • Method Details

    • values

      public static GraphErrorCodes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GraphErrorCodes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null