JAL-1140 - IO classes should only raise generic IOExceptions
[jalview.git] / src / jalview / ext / jmol / PDBFileWithJmol.java
index 962fe3c..1059021 100644 (file)
@@ -20,13 +20,9 @@ package jalview.ext.jmol;
 import java.io.IOException;
 import java.util.Map;
 
-import javax.xml.parsers.ParserConfigurationException;
-
 import org.jmol.api.JmolStatusListener;
 import org.jmol.api.JmolViewer;
 import org.jmol.constant.EnumCallback;
-import org.jmol.constant.EnumStructure;
-import org.jmol.modelset.Chain;
 import org.jmol.modelset.Group;
 import org.jmol.modelset.Model;
 import org.jmol.modelset.ModelSet;
@@ -34,12 +30,7 @@ import org.jmol.modelset.Polymer;
 import org.jmol.modelsetbio.BioPolymer;
 import org.jmol.viewer.Viewer;
 import org.openscience.jmol.app.JmolApp;
-import org.xml.sax.SAXException;
 
-import fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax;
-import fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed;
-import fr.orsay.lri.varna.exceptions.ExceptionPermissionDenied;
-import fr.orsay.lri.varna.exceptions.ExceptionUnmatchedClosingParentheses;
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.Annotation;
 import jalview.datamodel.PDBEntry;
@@ -62,10 +53,7 @@ public class PDBFileWithJmol extends AlignFile implements
   Viewer viewer = null;
 
   public PDBFileWithJmol(String inFile, String type)
-          throws ExceptionUnmatchedClosingParentheses, IOException,
-          ExceptionFileFormatOrSyntax, ParserConfigurationException,
-          SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed,
-          InterruptedException
+          throws IOException
   {
     super(inFile, type);
   }
@@ -128,10 +116,7 @@ public class PDBFileWithJmol extends AlignFile implements
    * @see jalview.io.AlignFile#parse()
    */
   @Override
-  public void parse() throws IOException, ExceptionFileFormatOrSyntax,
-          ParserConfigurationException, SAXException,
-          ExceptionPermissionDenied, ExceptionLoadingFailed,
-          InterruptedException, ExceptionUnmatchedClosingParentheses
+  public void parse() throws IOException
   {
     Viewer jmd = getJmolData();
     jmd.openReader(getDataName(), getDataName(), getReader());