On 04/18/09 17:51, Jan Holst Jensen wrote:
1) Is there a way that I can provide additional error information to be shown in the status bar ? [The best option] 2) Should I fall back to defining all return types as "any" and then return error message strings in case of errors ? [Ugly, but should work] 3) Is there a trick to doing this better, e.g. raise a particular kind of exception ? [Perhaps even better]

You can use IllegalArgumentException to get "Err:502" (Invalid Argument) instead, but you can't provide your own error message.

If you return the error message as a string, it depends on your usage of the function if it is handled correctly.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to