Don't make getNode throw XML-specific Exceptions.
This commit is contained in:
parent
3a4877f84b
commit
40a3b57be3
2 changed files with 2 additions and 10 deletions
|
@ -19,8 +19,6 @@ package helma.objectmodel;
|
|||
import helma.objectmodel.INode;
|
||||
import helma.objectmodel.db.IDGenerator;
|
||||
import java.io.IOException;
|
||||
import org.xml.sax.SAXException;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
/**
|
||||
* Interface that is implemented by Database wrappers
|
||||
|
@ -57,8 +55,7 @@ public interface IDatabase {
|
|||
|
||||
// node-related
|
||||
public INode getNode(ITransaction transaction, String key)
|
||||
throws IOException, ObjectNotFoundException,
|
||||
SAXException, ParserConfigurationException;
|
||||
throws IOException, ObjectNotFoundException;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -20,9 +20,7 @@ import helma.objectmodel.*;
|
|||
import helma.objectmodel.dom.IDGenParser;
|
||||
import helma.objectmodel.dom.XmlDatabaseReader;
|
||||
import helma.objectmodel.dom.XmlWriter;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
@ -162,12 +160,9 @@ public final class XmlDatabase implements IDatabase {
|
|||
* @return
|
||||
* @throws IOException
|
||||
* @throws ObjectNotFoundException
|
||||
* @throws ParserConfigurationException
|
||||
* @throws SAXException
|
||||
*/
|
||||
public INode getNode(ITransaction txn, String kstr)
|
||||
throws IOException, ObjectNotFoundException,
|
||||
ParserConfigurationException, SAXException {
|
||||
throws IOException, ObjectNotFoundException {
|
||||
File f = new File(dbHomeDir, kstr + ".xml");
|
||||
|
||||
if (!f.exists()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue