If this is the result of an activity in a microflow you can do the following:
1) Right-click the activity in the microflow.
2) Change error handling from Rollback to Custom with rollback.
3) Add an activity below the activity of step 1.
4) Set type of action of the new activity to Show message and add your own message (this will be shown instead of the stacktrace).
5) Draw a line from the activity of step 1 to the activity of step 3.
6) Right-click the line (created under step 5) and set it to "Set as error handler".
7) Add an end event activity and draw a line from the activity (step 3) to it.
End result should be something like this: