When you declare an exception (checked or unchecked) in an interface it means that anyone who uses this interface should be prepared to handle this exception but it does not mean that every implementation of that interface must throw this exception. Maybe an implementation exists that simply do not need to throw it.
That means when you implement an interface your implementation only have to declare an exception itself when it actually throws this exception. The only thing that an interface can enforce is that when declaring a checked exception, all implementations of that interface can not throw more checked exception than the interface has declared. Unchecked exceptions (everything thats a RuntimeException) can always be thrown and dont have to be declared at all. If you declare them then its just for information/documentation. - J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7ApJnfyhIGoJ. To post to this group, send email to [email protected]. 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.
