Use error message as title instead of error type

Is there a way to modify an error event so that the UI will show the error message as title instead of the type? In the example below I’d like to see MyError: Presser down as the title and the error type as additional information.

I am using the Go SDK and could probably send a message instead of an error but then I lose the stacktrace.