Hi all,
any one knows what API (object String) I can change dynamically on plugin code so I can have a better description when having execution erros/exceptions?
What I mean is getting more specific information rather than seeing "Execution sucessfully" or "Execution Failed". And when it fails I would like to see more info like exceptions. I was thinking about what object shows up here and set the content of it (string) with the messages.
Answer by David L. ·
You have to return the actual status of the plugin when you treat your exceptions, otherwise it will always return "Successful" or "Execution Failed" because it threw an exception that was not treated.
return new Status(Status.StatusCode.Success);
The different status you can use are on the "Developing an User Plugin" page.
And if you look in the JavaDoc you will find out that the "Status" constructor also takes more arguments, and they are messages that you can customize anyway you want and will show up on the execution results details
Answer by David M. ·
Hi Renato,
I'm not sure if this is on the right track, but it may be worth taking a look at. Developing a User Plugin#StatusCodes
Thanks,
David
JANUARY 15, 3:00 PM GMT / 10:00 AM ET