1010
1111package org .vcell .api .messaging ;
1212
13- import cbit .vcell .biomodel .BioModelMetaData ;
1413import cbit .vcell .field .FieldDataAllDBEntries ;
15- import cbit .vcell .mathmodel .MathModelMetaData ;
1614import cbit .vcell .message .server .bootstrap .client .RemoteProxyException ;
1715import cbit .vcell .message .server .bootstrap .client .RpcDbServerProxy ;
1816import cbit .vcell .message .server .bootstrap .client .RpcSender ;
@@ -106,7 +104,7 @@ public void deleteBioModel(org.vcell.util.document.KeyValue key) throws DataAcce
106104 try {
107105 vCellApiClient .getBioModelApi ().deleteBioModel (key .toString ());
108106 } catch (ApiException e ) {
109- ExceptionHandler .onlyDataAccessException (e );
107+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
110108 }
111109}
112110
@@ -115,7 +113,7 @@ public FieldDataAllDBEntries getAllFieldDataIDs() throws DataAccessException {
115113 try {
116114 fieldDataReferences = vCellApiClient .getFieldDataApi ().getAllIDs ();
117115 } catch (ApiException e ) {
118- ExceptionHandler .onlyDataAccessException (e );
116+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
119117 }
120118 return DtoModelTransforms .fieldDataReferencesToDBResults (fieldDataReferences );
121119}
@@ -178,7 +176,7 @@ public void deleteMathModel(org.vcell.util.document.KeyValue key) throws DataAcc
178176 if (lg .isTraceEnabled ()) lg .trace ("LocalUserMetaDbServerMessaging.deleteMathModel(Key=" +key +")" );
179177 vCellApiClient .getMathModelApi ().deleteMathModel (key .toString ());
180178 } catch (ApiException e ) {
181- ExceptionHandler .onlyDataAccessException (e );
179+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
182180 throw new RuntimeException ("Expected error handler to throw an error." , e );
183181 }
184182}
@@ -280,7 +278,7 @@ public org.vcell.util.document.BioModelInfo getBioModelInfo(org.vcell.util.docum
280278 BioModelSummary context = vCellApiClient .getBioModelApi ().getBioModelSummary (bioModelKey .toString ());
281279 return DtoModelTransforms .bioModelContextToBioModelInfo (context );
282280 } catch (ApiException e ) {
283- ExceptionHandler .onlyDataAccessException (e );
281+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
284282 throw new RuntimeException ("Exception handler did not throw an exception." );
285283 }
286284}
@@ -297,7 +295,7 @@ public org.vcell.util.document.BioModelInfo[] getBioModelInfos(boolean bAll) thr
297295 }
298296 return infos ;
299297 } catch (ApiException e ) {
300- ExceptionHandler .onlyDataAccessException (e );
298+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
301299 throw new RuntimeException ("Exception handler did not throw an exception." );
302300 }
303301}
@@ -312,7 +310,7 @@ public BigString getBioModelXML(KeyValue bioModelKey) throws DataAccessException
312310 if (lg .isTraceEnabled ()) lg .trace ("LocalUserMetaDbServerMessaging.getBioModelXML(key=" +bioModelKey +")" );
313311 return new BigString (vCellApiClient .getBioModelApi ().getBioModelVCML (bioModelKey .toString ()));
314312 } catch (ApiException e ) {
315- ExceptionHandler .onlyDataAccessException (e );
313+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
316314 throw new RuntimeException ("Exception handler did not throw an error." , e );
317315 }
318316}
@@ -427,12 +425,12 @@ public BigString getGeometryXML(KeyValue geometryKey) throws DataAccessException
427425}
428426
429427
430- public MathModelInfo getMathModelInfo (KeyValue key ) throws DataAccessException , ObjectNotFoundException , RemoteProxyException {
428+ public MathModelInfo getMathModelInfo (KeyValue key ) throws DataAccessException , ObjectNotFoundException {
431429 try {
432430 MathModelSummary summary = vCellApiClient .getMathModelApi ().getSummary (key .toString ());
433431 return DtoModelTransforms .mathModelContextToMathModel (summary );
434432 } catch (ApiException e ) {
435- ExceptionHandler .onlyDataAccessException (e );
433+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
436434 throw new RuntimeException ("Exception handler did not throw an exception." );
437435 }
438436 }
@@ -448,7 +446,7 @@ public org.vcell.util.document.MathModelInfo[] getMathModelInfos(boolean bAll) t
448446 }
449447 return modelInfos ;
450448 } catch (ApiException e ) {
451- ExceptionHandler .onlyDataAccessException (e );
449+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
452450 throw new RuntimeException ("Exception handler did not throw an error." , e );
453451 }
454452}
@@ -844,7 +842,7 @@ public BigString saveBioModel(BigString bioModelXML, String independentSims[]) t
844842 independentSims == null ? null : Arrays .asList (independentSims )
845843 );
846844 } catch (ApiException e ) {
847- ExceptionHandler .onlyDataAccessException (e );
845+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
848846 }
849847 return new BigString (savedBioModelXML );
850848}
@@ -865,7 +863,7 @@ public BigString saveBioModelAs(BigString bioModelXML, String newName, String in
865863 independentSims == null ? null : Arrays .asList (independentSims )
866864 );
867865 } catch (ApiException e ) {
868- ExceptionHandler .onlyDataAccessException (e );
866+ ExceptionHandler .onlyDataAccessOrPermissionException (e );
869867 }
870868 return new BigString (savedBioModelXML );
871869
0 commit comments