withException method
Implementation
ExceptionAndStackTrace withException(Exception exception) =>
ExceptionAndStackTrace(exception, stackTrace);
ExceptionAndStackTrace withException(Exception exception) =>
ExceptionAndStackTrace(exception, stackTrace);