Interface FinancialRecordError.Builder

  • Method Details

    • key

      The key of the record that couldn't be retrieved, as you requested it.

      Parameters:
      key - The key of the record that couldn't be retrieved, as you requested it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • key

      The key of the record that couldn't be retrieved, as you requested it.

      This is a convenience method that creates an instance of the FinancialRecordKey.Builder avoiding the need to create one manually via FinancialRecordKey.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to key(FinancialRecordKey).

      Parameters:
      key - a consumer that will call methods on FinancialRecordKey.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • code

      The error code that indicates why the retrieval failed. The following values are valid:

      • NOT_FOUND – No financial record on your account matches the key.

      • INTERNAL_ERROR – An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.

      Parameters:
      code - The error code that indicates why the retrieval failed. The following values are valid:

      • NOT_FOUND – No financial record on your account matches the key.

      • INTERNAL_ERROR – An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.

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

      The error code that indicates why the retrieval failed. The following values are valid:

      • NOT_FOUND – No financial record on your account matches the key.

      • INTERNAL_ERROR – An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.

      Parameters:
      code - The error code that indicates why the retrieval failed. The following values are valid:

      • NOT_FOUND – No financial record on your account matches the key.

      • INTERNAL_ERROR – An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.

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

      A description of why the operation couldn't retrieve this record. The wording can change at any time and isn't localized, so don't parse this value. To handle the error in your code, use code instead.

      Parameters:
      message - A description of why the operation couldn't retrieve this record. The wording can change at any time and isn't localized, so don't parse this value. To handle the error in your code, use code instead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.