Package com.sun.star.uno

Examples of com.sun.star.uno.RuntimeException


  {
    // Ensure that we are on a native threads vm
    // (binary UNO does use native threads).
    String vm_info = System.getProperty("java.vm.info");
    if(vm_info != null && vm_info.indexOf("green") != -1)
      throw new RuntimeException(RegistryServiceFactory.class.toString() + ".create - can't use binary UNO with green threads");


        if (writeRegistryFile == null && readRegistryFile == null)
            throw new com.sun.star.uno.Exception("No registry is specified!");
View Full Code Here


            {
                checkBoxPath = AnyConverter.toString( args[0] );
            }
            catch ( IllegalArgumentException e )
            {
                throw new RuntimeException( "SecurityDialog::initialize: " + e.getMessage() );
            }
            LogUtils.DEBUG( "path: " + checkBoxPath );
            checkBoxDialog = true;
            if( checkBoxPath.length() > lineWrapLength )
            {
                extraPathLine = true;
                cbIncrH += lineWrapH;
                checkBoxPath2 = checkBoxPath.substring( lineWrapLength );
                checkBoxPath = checkBoxPath.substring( 0, lineWrapLength );
            }
           
        }
        else
        {
            LogUtils.DEBUG( "no checkbox: # of args=" +
                args.length );
            cbIncrW = 0;
            cbIncrH = 0;
            checkBoxDialog = false;
        }

        // now try and create the dialog
        try
        {
            _xDialog = createDialog();
        }
        catch ( com.sun.star.uno.Exception e )
        {
            LogUtils.DEBUG( "Couldn't create dialog" );
            LogUtils.DEBUG( "uno message: " + e.getMessage());
            throw new RuntimeException( e.getMessage() );
        }
        catch ( Exception e )
        {
            LogUtils.DEBUG( "Couldn't create dialog" );
            LogUtils.DEBUG( "message: " + e.getMessage());
            throw new RuntimeException( e.getMessage() );
        }

  }
View Full Code Here

            {
                return xName.getByName(ElementName);
            }
            else
            {
                throw new RuntimeException();
            }
        }
        catch (Exception exception)
        {
            exception.printStackTrace(System.out);
View Full Code Here

                {
                    return CurPropertyValue[i].Value;
                }
            }
        }
        throw new RuntimeException();
    }
View Full Code Here

  {
    // Ensure that we are on a native threads vm
    // (binary UNO does use native threads).
    String vm_info = System.getProperty("java.vm.info");
    if(vm_info != null && vm_info.indexOf("green") != -1)
      throw new RuntimeException(RegistryServiceFactory.class.toString() + ".create - can't use binary UNO with green threads");


        if (writeRegistryFile == null && readRegistryFile == null)
            throw new com.sun.star.uno.Exception("No registry is specified!");
View Full Code Here

            {
                checkBoxPath = AnyConverter.toString( args[0] );
            }
            catch ( IllegalArgumentException e )
            {
                throw new RuntimeException( "SecurityDialog::initialize: " + e.getMessage() );
            }
            LogUtils.DEBUG( "path: " + checkBoxPath );
            checkBoxDialog = true;
            if( checkBoxPath.length() > lineWrapLength )
            {
                extraPathLine = true;
                cbIncrH += lineWrapH;
                checkBoxPath2 = checkBoxPath.substring( lineWrapLength );
                checkBoxPath = checkBoxPath.substring( 0, lineWrapLength );
            }
           
        }
        else
        {
            LogUtils.DEBUG( "no checkbox: # of args=" +
                args.length );
            cbIncrW = 0;
            cbIncrH = 0;
            checkBoxDialog = false;
        }

        // now try and create the dialog
        try
        {
            _xDialog = createDialog();
        }
        catch ( com.sun.star.uno.Exception e )
        {
            LogUtils.DEBUG( "Couldn't create dialog" );
            LogUtils.DEBUG( "uno message: " + e.getMessage());
            throw new RuntimeException( e.getMessage() );
        }
        catch ( Exception e )
        {
            LogUtils.DEBUG( "Couldn't create dialog" );
            LogUtils.DEBUG( "message: " + e.getMessage());
            throw new RuntimeException( e.getMessage() );
        }

  }
View Full Code Here

  {
    // Ensure that we are on a native threads vm
    // (binary UNO does use native threads).
    String vm_info = System.getProperty("java.vm.info");
    if(vm_info != null && vm_info.indexOf("green") != -1)
      throw new RuntimeException(RegistryServiceFactory.class.toString() + ".create - can't use binary UNO with green threads");


        if (writeRegistryFile == null && readRegistryFile == null)
            throw new com.sun.star.uno.Exception("No registry is specified!");
View Full Code Here

  //______________________________________________________________________________________________
  private static void ASSERT( boolean c )
    throws java.lang.Exception
  {
    if (! c)
      throw new RuntimeException( "assertion failed!", null );
  }
View Full Code Here

  //______________________________________________________________________________________________
  private static void ENSURE( boolean c, String m )
    throws java.lang.Exception
  {
    if (! c)
      throw new RuntimeException( m, null );
  }
View Full Code Here

        return true;
      } else {
        return false;
      }
    } catch (SQLException e) {
      throw new RuntimeException();
    }finally{//关闭连接
      try {
        if(rs!=null){rs.close();}
        if(conn!=null){conn.close();}
      } catch (SQLException e) {
View Full Code Here

TOP

Related Classes of com.sun.star.uno.RuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.