I am using a third party library code, calling just one method. The method is declared to throw ZZException, however when running in the real environment, we found this method throwed out IOExceoption sometime.
public void TestMethod() throws ZZException
I am wondering why there is no decalrtion for IOException thrown? If not declaring throw IOException, can IOException being throwed out?
BTW, ZZException is subclass of RuntimeException
Thsi might be an Error in the Library code or and other error in using the library, the best way to know is to report this to the developer including some code and see his answer.