Closed robmoffat closed 3 years ago
<pre>or <code> should allow you to display the trace nicely.
We should implement the exception handling in a different way, using @ExceptionHandler
. See https://www.tutorialspoint.com/spring_boot/spring_boot_exception_handling.htm
Ideally, we create a MessageContext
which keeps track in a thread-local of the room and the message details that are used. That way, we can create useful error messages.
If we had this, it would work for all bots, not just chat workflow.
Then, we can think about moving it out of chat workflow and into shared-streams.
At the moment, we produce the exception getMessage() on the screen, and display the stacktrace in the log.
It would be nice if users of the bot (i.e. developers) could also access the Stacktrace via Symphony.
stacktrace
, theStacktraceMessageConsumer
needs to callhist.getLastFromHistory(ErrorDetails.class, a)
to get the ErrorDetails object