Quoting Frankie Poon <[EMAIL PROTECTED]>: > hi all, > i am new in JAVA... > > What is the meaning of the following error?? > > pdf.java:57: unreported exception com.lowagie.text.DocumentException; must > be caught or declared to be thrown
You are using a method that can throw a DocumentException if something goes wrong. Just like you caught the IOException, you have to add a catch phrase with a DocumentException. Other alternatives are: 1. use a superclass of both exceptions in the catch phrase (e.g. Exception) 2. use throws DocumentException right after the declaration of the method name. This may not work at all times: if you are overriding a superclass method, you can only throw the exceptions that are thrown by that supermethod. br, Bruno ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions