What's the better way to add a messaging after an ...
# community-support
r
What's the better way to add a messaging after an exception is thrown. More in 🧵
I have
DataFlow Action
which reads the stack-trace from CC phase/Execution Phase of the build. For few stack-traces based on the messages, i want to print additional message on the console, but after the exception is thrown.
Printing additional message from
FlowAction#execute
, prints the message before the exception is thrown. I was thinking of using
BuildListener#buildFinished
but it's deprecated in favour of
Copy code
FlowProviders#getBuildWorkResult()
n
r
I didn't try it out in this exact use case - I believe it should behave the same 🤔 , but i had been playing around with problems apis, unfortunately reporting problems doesn't show up in console unless you use
.throwing.
The reported problem seems to be only catched via tooling apis integrated with IDE as an example, unfortunately there are no problems api exposed yet, which can catch problems in the same plugin or build without relying on tooling apis.