Error Handling - throwable object

Hi there.

I have one question about the exception or error object that can be thrown.
In blocks “New Error Message” and “New Server Code Error”, the input parameter “message” can be an object created by me or does it requires to be text?
And if it must be text, can I put the text serialized object using “Convert to Text”?

I’m looking for a mechanism where I can pass data with the error yhat would allow a generic function to build the internationalized message for the user.

Thanks for your help,

Paulo

Hello, @Paulo_Mira

The input parameter message typically expect a string or text value. While it is possible to pass a custom object by serializing it to a string using a Convert to Text block.

Regards,
Serhiy

Thank you Serhiy.