cancel
Showing results for 
Search instead for 
Did you mean: 

how to print an error message?

patco_
Champ in-the-making
Champ in-the-making

Hi,

I'm working on a plugin for file import. When any problem occurs, it seems I have no mean to tell the user about it (apart from the log!)... or am I wrong? Is there a way to have a message printed to the user, for example when a ClientException is thrown?

Tx

Patrick

1 ACCEPTED ANSWER

Thomas_Roger
Star Contributor
Star Contributor

Hi,

You can throw a RecoverableClientException from your own code. The first message param is the exception message, the second one, localizedMessage, is the label that will be used to display an i18n error feedback message.

This exception will be caught by the Seam layer to display an error feedback to the user.

View answer in original post

6 REPLIES 6

Thomas_Roger
Star Contributor
Star Contributor

Hi,

You can throw a RecoverableClientException from your own code. The first message param is the exception message, the second one, localizedMessage, is the label that will be used to display an i18n error feedback message.

This exception will be caught by the Seam layer to display an error feedback to the user.

patco_
Champ in-the-making
Champ in-the-making

Hi,

Nothing is displayed or the not i18n label is displayed?

patco_
Champ in-the-making
Champ in-the-making

nothing is displayed.

Could you show us your code (in a gist or pastebin or ...)?

Please [fill an issue][1] if you can provide a way to reproduce it (code sample, unit/integration or functional test, ...).

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.