withCorrelationId method

ApplicationException withCorrelationId (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