Search in sources :

Example 21 with DataAccessException

use of org.vcell.util.DataAccessException in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method saveGeometry.

/**
 * getVersionInfo method comment.
 * @throws RemoteException
 */
public BigString saveGeometry(BigString geometryXML) throws DataAccessException {
    try {
        log.print("LocalUserMetaDbServerMessaging.saveGeometry()");
        BigString savedGeometryXML = dbServerProxy.saveGeometry(geometryXML);
        return savedGeometryXML;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 22 with DataAccessException

use of org.vcell.util.DataAccessException in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method saveVCImage.

/**
 * getVersionInfo method comment.
 * @throws RemoteException
 */
public BigString saveVCImage(BigString vcImageXML) throws DataAccessException {
    try {
        log.print("LocalUserMetaDbServerMessaging.saveVCImage()");
        BigString savedVCImageXML = dbServerProxy.saveVCImage(vcImageXML);
        return savedVCImageXML;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 23 with DataAccessException

use of org.vcell.util.DataAccessException in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method getBioModelXML.

/**
 * getVersionInfo method comment.
 * @throws RemoteException
 */
public BigString getBioModelXML(KeyValue bioModelKey) throws DataAccessException {
    try {
        log.print("LocalUserMetaDbServerMessaging.getBioModelXML(key=" + bioModelKey + ")");
        BigString bioModelXML = dbServerProxy.getBioModelXML(bioModelKey);
        return bioModelXML;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 24 with DataAccessException

use of org.vcell.util.DataAccessException in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method saveGeometryAs.

/**
 * getVersionInfo method comment.
 * @throws RemoteException
 */
public BigString saveGeometryAs(BigString geometryXML, String newName) throws DataAccessException {
    try {
        log.print("LocalUserMetaDbServerMessaging.saveGeometryAs(newName=" + newName + ")");
        BigString savedGeometryXML = dbServerProxy.saveGeometryAs(geometryXML, newName);
        return savedGeometryXML;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 25 with DataAccessException

use of org.vcell.util.DataAccessException in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method getAllReferences.

/**
 * getVersionable method comment.
 * @throws RemoteException
 */
public org.vcell.util.document.VersionableFamily getAllReferences(org.vcell.util.document.VersionableType vType, org.vcell.util.document.KeyValue key) throws DataAccessException, ObjectNotFoundException {
    try {
        log.print("LocalUserMetaDbServerMessaging.getAllReferences(vType=" + vType.getTypeName() + ", Key=" + key + ")");
        log.alert("LocalUserMetaDbServerMessaging.getAllReferences() can return 'version' objects that aren't viewable to user !!!!!!!!!!!!!!!! ");
        return dbServerProxy.getAllReferences(vType, key);
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : DataAccessException(org.vcell.util.DataAccessException)

Aggregations

DataAccessException (org.vcell.util.DataAccessException)345 KeyValue (org.vcell.util.document.KeyValue)82 XmlParseException (cbit.vcell.xml.XmlParseException)80 ExpressionException (cbit.vcell.parser.ExpressionException)78 ObjectNotFoundException (org.vcell.util.ObjectNotFoundException)71 SQLException (java.sql.SQLException)67 IOException (java.io.IOException)60 MathException (cbit.vcell.math.MathException)59 RemoteProxyException (cbit.vcell.message.server.bootstrap.client.RemoteProxyVCellConnectionFactory.RemoteProxyException)46 BigString (org.vcell.util.BigString)45 User (org.vcell.util.document.User)42 FileNotFoundException (java.io.FileNotFoundException)38 ResultSet (java.sql.ResultSet)38 PropertyVetoException (java.beans.PropertyVetoException)37 File (java.io.File)34 PermissionException (org.vcell.util.PermissionException)34 Statement (java.sql.Statement)33 ExpressionBindingException (cbit.vcell.parser.ExpressionBindingException)32 BioModelInfo (org.vcell.util.document.BioModelInfo)29 Vector (java.util.Vector)26