Hi
In my plugin there is a point that users can get a exception like "Strinh index out of bounds"
Right now it just stack trace on the screen:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1938)
Is there a way we show messages to user instead of showing a stack trace.
Please let me know.
Thanks
Abe
Depends on what your plugin is. Is it a validator? They have ways to return a nice message to the user. For things like listeners and post-function, there's no feedback (other than a stack dump) because you're not expected to handle it.
Exactly Nic. I am catching but how do I show users a friendly message. In my plugin user enters a string I take the string process it and show results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The programmer in me is screaming for you to catch the cases that cause the string to go out of bounds and either prevent it or code a proper response to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depends on the context, for workflow actions etc yes, for services or listeners etc, no. So it depends what type of plugin you have.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.