Interface ErrorDetail.Builder

    • Method Detail

      • errorCode

        ErrorDetail.Builder errorCode​(String errorCode)

        The name or code associated with the error.

        Parameters:
        errorCode - The name or code associated with the error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorData

        ErrorDetail.Builder errorData​(Collection<? extends Map<String,​String>> errorData)

        A list of key value pairs that provides contextual information about why an error occured.

        Parameters:
        errorData - A list of key value pairs that provides contextual information about why an error occured.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorData

        ErrorDetail.Builder errorData​(Map<String,​String>... errorData)

        A list of key value pairs that provides contextual information about why an error occured.

        Parameters:
        errorData - A list of key value pairs that provides contextual information about why an error occured.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorMessage

        ErrorDetail.Builder errorMessage​(String errorMessage)

        A message that describes the error.

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