public DataAccessException translate(Throwable e){
  DataAccessException dae=internalTranslate(e);
  if (dae != null) {
    return dae;
  }
  if (e instanceof ProtectiveModeException)   throw new ProtectiveModeException(e.getMessage(),e);
  if (e instanceof RuntimeException) {
    throw (RuntimeException)e;
  }
  return new UncategorizedSpaceException(e.getMessage(),e);
}

public DataAccessException translate ( Throwable e ) { DataAccessException dae = internalTranslate ( e ) ; if ( dae != null ) { return dae ; } if ( e instanceof ProtectiveModeException ) throw new ProtectiveModeException ( e . getMessage ( ) , e ) ; if ( e instanceof RuntimeException ) { throw ( RuntimeException ) e ; } return new UncategorizedSpaceException ( e . getMessage ( ) , e ) ; }
translates general javaspaces and jini exceptions into a dataaccess exception .
