Re: IllegalStateException?
Signals that a method has been invoked at an illegal or inappropriate time.
Since it's a subclass of RuntimeException your not required to declare it in the throws clause. I guess you throw an IllegalStateException exception when, well a method is called an an illegal time. :lol:
Re: IllegalStateException?
Well, how can you call a method at an illegal time? And won't that throw different exceptions other than illegalStateException?
Re: IllegalStateException?
Quote:
Posted by System Error
Well, how can you call a method at an illegal time?
Perhaps if an objects data must be accessed asynchronously. Without an absence of synchronism the object might be left in an inconsistent state. There is an IllegalThreadStateException though so i don't know if an IllegalStateException would apply to the above instance.