perfsonar-dev - perfsonar: r2505 - in trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage: . exist
Subject: perfsonar development work
List archive
perfsonar: r2505 - in trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage: . exist
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2505 - in trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage: . exist
- Date: Wed, 4 Jul 2007 08:28:39 -0400
Author: mac
Date: 2007-07-04 08:28:39 -0400 (Wed, 04 Jul 2007)
New Revision: 2505
Modified:
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/XMLDataStorage.java
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/exist/ExistHTTPDataStorage.java
Log:
Remove of SystemException
Modified:
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/XMLDataStorage.java
===================================================================
---
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/XMLDataStorage.java
2007-07-04 11:37:57 UTC (rev 2504)
+++
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/XMLDataStorage.java
2007-07-04 12:28:39 UTC (rev 2505)
@@ -1,6 +1,6 @@
package org.perfsonar.service.lookupService.xmlType.storage;
-import org.perfsonar.service.commons.exceptions.SystemException;
+import org.perfsonar.service.commons.exceptions.PerfSONARException;
import org.perfsonar.service.commons.storage.xmldb.XmlDbResult;
/**
@@ -19,11 +19,12 @@
* @param xmlDocument
* @param dataTarget
* @throws SystemException
+ * @throws PerfSONARException
*/
public void put(
String xmlDocument,
String collection,
- DataCredential credential) throws SystemException;
+ DataCredential credential) throws PerfSONARException;
/**
@@ -33,7 +34,7 @@
*/
public void delete(
String collection,
- DataCredential credential) throws SystemException;
+ DataCredential credential) throws PerfSONARException;
/**
@@ -46,7 +47,7 @@
public XmlDbResult performXQuery(
String xquery,
String collection,
- DataCredential credential) throws SystemException;
+ DataCredential credential) throws PerfSONARException;
} //DataStorage
Modified:
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/exist/ExistHTTPDataStorage.java
===================================================================
---
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/exist/ExistHTTPDataStorage.java
2007-07-04 11:37:57 UTC (rev 2504)
+++
trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage/exist/ExistHTTPDataStorage.java
2007-07-04 12:28:39 UTC (rev 2505)
@@ -1,6 +1,6 @@
package org.perfsonar.service.lookupService.xmlType.storage.exist;
-import org.perfsonar.service.commons.exceptions.SystemException;
+import org.perfsonar.service.commons.exceptions.PerfSONARException;
import org.perfsonar.service.commons.storage.xmldb.XmlDbResult;
import
org.perfsonar.service.commons.storage.xmldb.exist.rest.ExistDbHTTPAccess;
import org.perfsonar.service.lookupService.xmlType.storage.DataCredential;
@@ -28,7 +28,7 @@
public void put(
String xmlDocument,
String collection,
- DataCredential credential) throws SystemException {
+ DataCredential credential) throws PerfSONARException {
try {
@@ -39,7 +39,7 @@
credential.getPassword());
} catch (Exception ex) {
- throw new SystemException(
+ throw new PerfSONARException(
"error.common.storage.xmldb.open",
"PUT HTTP request of resource ["+collection+"] failed."
+ "Could not connect to eXist via pure http, "
@@ -52,7 +52,7 @@
public void delete(
String collection,
- DataCredential credential) throws SystemException {
+ DataCredential credential) throws PerfSONARException {
try {
@@ -62,7 +62,7 @@
credential.getPassword());
} catch (Exception ex) {
- throw new SystemException(
+ throw new PerfSONARException(
"error.common.storage.xmldb.open",
"DELETE HTTP request of resource ["+collection+"]
failed. "
+ "Could not connect to eXist via pure http, "
@@ -76,7 +76,7 @@
public XmlDbResult performXQuery(
String xquery,
String collection,
- DataCredential credential) throws SystemException {
+ DataCredential credential) throws PerfSONARException {
XmlDbResult results = null;
@@ -90,7 +90,7 @@
ExistDbHTTPAccess.ALL_RESULTS);
} catch (Exception ex) {
- throw new SystemException(
+ throw new PerfSONARException(
"error.common.storage.xmldb.open",
"XQuery by HTTP failed. "
+ "Could not connect to eXist via pure http, "
- perfsonar: r2505 - in trunk/perfsonar/src/org/perfsonar/service/lookupService/xmlType/storage: . exist, svnlog, 07/04/2007
Archive powered by MHonArc 2.6.16.