or extend "RuntimeException" if you want an unchecked exception.
On Sep 4, 5:07 pm, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote: > extend "Exception", not "Throwable". > > On Sep 4, 3:53 pm, robert_trudel <[EMAIL PROTECTED]> wrote: > > > hi > > > i have some class who extends this class > > > public abstract class UserException extends Throwable implements > > IsSerializable { > > > public UserException() { > > } > > > public UserException(String s) { > > super(s); > > > } > > > public UserException(String s, Throwable ex) { > > super(s, ex); > > } > > > } > > > when i build my project, i get this warning > > > UserException is not a checked exception; only checked exceptions may > > be used > > > any idea? > > > thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---