Display succinct errors on Hue

We're currently trying to figure out how to display only the error message we pass to exceptions. Currently when one is thrown we get a whole stack trace displayed in the red container on Hue. Is there a way to only display the message the exception throws? If possible, could this be thrown in the corner similar to Hue errors such as 'No directory found'?

For a user of our system we just want to display the problem, not all of the developer jargon :)