How to get full exception message to be displayed in error feedback pop-up

How to get full exception message to be displayed in error feedback pop-up

  

I need to display the full error message received during and exception. How can I do that? OutSystems alters the message. If I break in the code with debugger this is the error message received during exception:

[SQLCODE: <-147>:<Unable to convert time input to a valid logical time value>]
[Location: <ServerLoop>]
[%msg: <Error: '1900-01-01 00:00:00' is an invalid ODBC/JDBC Time value>]


Also see her the screenshot from the debugger:


I then use this exception message to display feedbakc to the user, but this is what comes out on the error pop-up:

[SQLCODE: <-147>:] [Location: ] [%msg: ]

How can I get it to display the FULL error message?

Solution

Hi,

Yes, you can get the full message if you use the EncodeHTML function when using the FeedbackMessage widget.

What is happening is that because there are <> in the message with text inside, those sections of the message are being rendered as HTML tags. However, by using the EncodeHTML function these parts with be rendered as text.

I used the following example in the FeedbackMessage widget and it worked:

Example: EncodeHtml("[SQLCODE: <-147>:<Unable to convert time input to a valid logical time value>]
[Location: <ServerLoop>]
[%msg: <Error: '1900-01-01 00:00:00' is an invalid ODBC/JDBC Time value>]")

Cheers,

João

Solution

Thank you João, that worked!