Class ErrorReason

    • Method Detail

      • errorCode

        public final ErrorCode errorCode()

        Service Quotas returns the following error values:

        • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Service or quota.

        • DEPENDENCY_THROTTLING_ERROR - The Amazon Web Service is throttling Service Quotas.

        • DEPENDENCY_SERVICE_ERROR - The Amazon Web Service is not available.

        • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.

        If the service returns an enum value that is not available in the current SDK version, errorCode will return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from errorCodeAsString().

        Returns:
        Service Quotas returns the following error values:

        • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Service or quota.

        • DEPENDENCY_THROTTLING_ERROR - The Amazon Web Service is throttling Service Quotas.

        • DEPENDENCY_SERVICE_ERROR - The Amazon Web Service is not available.

        • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.

        See Also:
        ErrorCode
      • errorCodeAsString

        public final String errorCodeAsString()

        Service Quotas returns the following error values:

        • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Service or quota.

        • DEPENDENCY_THROTTLING_ERROR - The Amazon Web Service is throttling Service Quotas.

        • DEPENDENCY_SERVICE_ERROR - The Amazon Web Service is not available.

        • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.

        If the service returns an enum value that is not available in the current SDK version, errorCode will return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from errorCodeAsString().

        Returns:
        Service Quotas returns the following error values:

        • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Service or quota.

        • DEPENDENCY_THROTTLING_ERROR - The Amazon Web Service is throttling Service Quotas.

        • DEPENDENCY_SERVICE_ERROR - The Amazon Web Service is not available.

        • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.

        See Also:
        ErrorCode
      • errorMessage

        public final String errorMessage()

        The error message.

        Returns:
        The error message.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)