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