withStackTrace method

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