withCorrelationId method

ApplicationException withCorrelationId(
  1. String? correlationId
)

Sets a correlation id which can be used to trace this error through a call chain.

This method returns reference to this exception to implement Builder pattern to chain additional calls.

  • correlationId a unique transaction id to trace error through call chain Returns this exception object

Implementation

ApplicationException withCorrelationId(String? correlationId) {
  correlation_id = correlationId;
  return this;
}