throw (com.sun.star.uno.Exception)targetException; else throw new com.sun.star.uno.Exception(targetException, targetException.getMessage(), this);
_xMultiServiceFactory.createInstance("com.sun.star.bridge.BridgeFactory")); } catch (com.sun.star.uno.Exception e) { throw new com.sun.star.uno.RuntimeException(e.getMessage()); connector = _xMultiServiceFactory.createInstance("com.sun.star.connection.Connector"); } catch (com.sun.star.uno.Exception e) { throw new com.sun.star.uno.RuntimeException(e.getMessage());
protected Object getModelByName(String sName) { Object model = null; try { model = m_xDlgModelNameContainer.getByName(sName); } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(System.out); } return model; }
} catch (com.sun.star.uno.Exception ex) { LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex); throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
} catch (com.sun.star.uno.Exception ex) { LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex); throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
throw (com.sun.star.uno.RuntimeException)targetException; else throw new com.sun.star.uno.Exception( targetException ); } catch (IllegalAccessException illegalAccessException) { throw new com.sun.star.uno.Exception( illegalAccessException ); } catch (InstantiationException instantiationException) { throw new com.sun.star.uno.Exception( instantiationException );
protected Object getModelByName(String sName) { Object model = null; try { model = m_xDlgModelNameContainer.getByName(sName); } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(System.out); } return model; }
} catch (com.sun.star.uno.Exception exc) { throw new com.sun.star.uno.RuntimeException(exc, exc.getMessage(), this ); } catch (java.lang.Exception exc) { throw new com.sun.star.uno.RuntimeException(exc,
} catch (com.sun.star.uno.Exception ex) { LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex); throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
throw new com.sun.star.uno.Exception("Query for service factory for " + serviceName + " failed.");
/** * Get the current step */ private int getCurrentStep() { int step = -1; try { XPropertySet xDialogModelPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, m_xMSFDialogModel); step = ((Integer) xDialogModelPropertySet.getPropertyValue("Step")).intValue(); } catch (com.sun.star.uno.Exception exception) { exception.printStackTrace(System.out); } return step; }
exc.getMessage(), this );
} catch (com.sun.star.uno.Exception ex) { LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex); throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex); } catch (Exception ex) { LOG.log(Level.SEVERE, "Unexpected exception while authenticating user.", ex);
throw (com.sun.star.uno.Exception)targetException; else throw new com.sun.star.uno.Exception( targetException.toString(), this );
/** * Get the current step */ private int getCurrentStep() { int step = -1; try { XPropertySet xDialogModelPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, m_xMSFDialogModel); step = ((Integer) xDialogModelPropertySet.getPropertyValue("Step")).intValue(); } catch (com.sun.star.uno.Exception exception) { exception.printStackTrace(System.out); } return step; }
private XIdlClass getReflection(String typeName) { XIdlReflection refl; try { refl = UnoRuntime.queryInterface( XIdlReflection.class, context.getServiceManager().createInstanceWithContext( "com.sun.star.reflection.CoreReflection", context)); } catch (com.sun.star.uno.Exception e) { throw new DeploymentException( ("component context fails to supply service" + " com.sun.star.reflection.CoreReflection: " + e.getMessage()), context); } try { return refl.forName(typeName); } finally { XComponent comp = UnoRuntime.queryInterface(XComponent.class, refl); if (comp != null) { comp.dispose(); } } }
} catch (com.sun.star.uno.Exception ex) { LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex); throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex); } catch (Exception ex) { LOG.log(Level.SEVERE, "Unexpected exception while authenticating user.", ex);
throw new com.sun.star.uno.Exception("Query for service factory for " + serviceName + " failed.");
public void initialize(String[] PropertyNames, Object[] PropertyValues) throws com.sun.star.script.BasicErrorException{ try{ XMultiPropertySet xMultiPropertySet = (XMultiPropertySet) UnoRuntime.queryInterface(XMultiPropertySet.class, m_xDlgModelNameContainer); xMultiPropertySet.setPropertyValues(PropertyNames, PropertyValues); } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(System.out); }}
} catch (com.sun.star.uno.Exception ex) { LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex); throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);