Interface ErrorReason.Builder

    • Method Detail

      • errorCode

        ErrorReason.Builder errorCode​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ErrorCode, ErrorCode
      • errorCode

        ErrorReason.Builder errorCode​(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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ErrorCode, ErrorCode
      • errorMessage

        ErrorReason.Builder errorMessage​(String errorMessage)

        The error message.

        Parameters:
        errorMessage - The error message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.