Thanks Naimesh,
I thought it could be possible since I saw some posts about it but none of them told how to do it. Now I know why :-]
I tried exporting the variable where I get the error from catch (it's called "text" in my example) and then importing it from the method in the class. It works. Anyway it's a crappy way to do it.
Could you recommend me any way to control ZTEST dumps from the calling method?
Regards