withCause method
ApplicationException
withCause(
- dynamic cause
inherited
Sets a original error wrapped by this exception
This method returns reference to this exception to implement Builder pattern to chain additional calls.
cause
original error object Returns this exception object
Implementation
ApplicationException withCause(cause) {
if (cause != null) this.cause = cause.toString();
return this;
}