withStackTrace method

ApplicationException withStackTrace(
  1. String stackTrace
)

Sets a stack trace for this error.

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

  • stackTrace a stack trace where this error occured Returns this exception object

Implementation

ApplicationException withStackTrace(String stackTrace) {
  stack_trace = stackTrace;
  return this;
}