Class ErrorCode


  • public final class ErrorCode
    extends com.microsoft.rest.ExpandableStringEnum<ErrorCode>
    Defines values for ErrorCode.
    • Field Detail

      • NONE

        public static final ErrorCode NONE
        Static value None for ErrorCode.
      • SERVER_ERROR

        public static final ErrorCode SERVER_ERROR
        Static value ServerError for ErrorCode.
      • INVALID_REQUEST

        public static final ErrorCode INVALID_REQUEST
        Static value InvalidRequest for ErrorCode.
      • RATE_LIMIT_EXCEEDED

        public static final ErrorCode RATE_LIMIT_EXCEEDED
        Static value RateLimitExceeded for ErrorCode.
      • INVALID_AUTHORIZATION

        public static final ErrorCode INVALID_AUTHORIZATION
        Static value InvalidAuthorization for ErrorCode.
      • INSUFFICIENT_AUTHORIZATION

        public static final ErrorCode INSUFFICIENT_AUTHORIZATION
        Static value InsufficientAuthorization for ErrorCode.
    • Constructor Detail

      • ErrorCode

        public ErrorCode()
    • Method Detail

      • fromString

        public static ErrorCode fromString​(String name)
        Creates or finds a ErrorCode from its string representation.
        Parameters:
        name - a name to look for
        Returns:
        the corresponding ErrorCode