Examples of ImportExportException


Examples of com.knowgate.hipergate.datamodel.ImportExportException

        put(c, sFieldValue);
      } // next (c)
      store(oConn, sWorkArea, iFlags);
    } // next (l)

  } catch (ArrayIndexOutOfBoundsException xcpt) { throw new ImportExportException(xcpt.getMessage(), xcpt);
    catch (NullPointerException xcpt)           { throw new ImportExportException(xcpt.getMessage(), xcpt);
    catch (IllegalArgumentException xcpt)       { throw new ImportExportException(xcpt.getMessage(), xcpt);
    catch (RuntimeException xcpt)               { throw new ImportExportException(xcpt.getMessage(), xcpt); }
    catch (SQLException xcpt)                   { throw new ImportExportException(xcpt.getMessage(), xcpt); }
    catch (FileNotFoundException xcpt)          { throw new ImportExportException(xcpt.getMessage(), xcpt); }
    catch (UnsupportedEncodingException xcpt)   { throw new ImportExportException(xcpt.getMessage(), xcpt); }
    catch (IOException xcpt)                    { throw new ImportExportException(xcpt.getMessage(), xcpt); }
    catch (FTPException xcpt)                   { throw new ImportExportException(xcpt.getMessage(), xcpt); }
    finally {
      try { close(); } catch (SQLException sqle) { throw new ImportExportException(sqle.getMessage(), sqle); }
    }
  } // importFile
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

            while ( results.hasMore() ) {
                result = (SearchResult) results.next();
                produce( result.getName(), result.getAttributes() );
            }
        } catch ( NamingException except ) {
            throw new ImportExportException( except );
        }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

      while ( results.hasMoreElements() ) {
    result = (SearchResult) results.nextElement();
    importEntry( result, getImportDescriptor().getPolicy( result.getName() ) );
      }
  } catch ( NamingException except ) {
      throw new ImportExportException( except );
  }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

      }
      enumeration = _ctx.search( getSearchDescriptor().getBaseDN(), filter, searchCtrl );
  } catch ( NameNotFoundException except ) {
      enumeration = null;
  } catch ( NamingException except ) {
      throw new ImportExportException( except );
  }

  try {
      producer = new JNDIProducer( docHandler, false );
      producer.startDocument();
      if ( enumeration != null )
    producer.produce( enumeration );
      if ( importPolicy && getImportDescriptor() != null )
    producer.produce( getImportDescriptor() );
      producer.endDocument();
  } catch ( SAXException except ) {
      throw new ImportExportException( except );
  }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

        getSearchDescriptor().getFilter(), attrs, false );
  } catch ( LDAPException except ) {
      // Object does not exist, was not removed, ignore.
      // Anything else, we must complain.
      if ( except.getLDAPResultCode() != LDAPException.NO_SUCH_OBJECT )
    throw new ImportExportException( except );
      enumeration = null;
  }

  try {
      producer = new MozillaProducer( docHandler, false );
      producer.startDocument();
      if ( serverSchema ) {
    schema = new LDAPSchema();
    schema.fetchSchema( _conn );
    producer.produce( schema );
      }
      if ( enumeration != null )
    producer.produce( enumeration );
      if ( importPolicy && getImportDescriptor() != null )
    producer.produce( getImportDescriptor() );
      producer.endDocument();
  } catch ( SAXException except ) {
      throw new ImportExportException( except );
  } catch ( LDAPException except ) {
      throw new ImportExportException( except );
  }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

      while ( entries.hasMoreElements() ) {
    entry = (LDAPEntry) entries.nextElement();
    importEntry( entry, getImportDescriptor().getPolicy( entry.getDN() ) );
      }
  } catch ( LDAPException except ) {
      throw new ImportExportException( except );
  }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

            while ( results.hasMore() ) {
                result = (SearchResult) results.next();
                produce( result.getName(), result.getAttributes() );
            }
        } catch ( NamingException except ) {
            throw new ImportExportException( except );
        }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

      while ( results.hasMoreElements() ) {
    result = (SearchResult) results.nextElement();
    importEntry( result, getImportDescriptor().getPolicy( result.getName() ) );
      }
  } catch ( NamingException except ) {
      throw new ImportExportException( except );
  }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

      }
      enumeration = _ctx.search( getSearchDescriptor().getBaseDN(), filter, searchCtrl );
  } catch ( NameNotFoundException except ) {
      enumeration = null;
  } catch ( NamingException except ) {
      throw new ImportExportException( except );
  }

  try {
      producer = new JNDIProducer( docHandler, false );
      producer.startDocument();
      if ( enumeration != null )
    producer.produce( enumeration );
      if ( importPolicy && getImportDescriptor() != null )
    producer.produce( getImportDescriptor() );
      producer.endDocument();
  } catch ( SAXException except ) {
      throw new ImportExportException( except );
  }
    }
View Full Code Here

Examples of org.exolab.castor.dsml.ImportExportException

        getSearchDescriptor().getFilter(), attrs, false );
  } catch ( LDAPException except ) {
      // Object does not exist, was not removed, ignore.
      // Anything else, we must complain.
      if ( except.getLDAPResultCode() != LDAPException.NO_SUCH_OBJECT )
    throw new ImportExportException( except );
      enumeration = null;
  }

  try {
      producer = new MozillaProducer( docHandler, false );
      producer.startDocument();
      if ( serverSchema ) {
    schema = new LDAPSchema();
    schema.fetchSchema( _conn );
    producer.produce( schema );
      }
      if ( enumeration != null )
    producer.produce( enumeration );
      if ( importPolicy && getImportDescriptor() != null )
    producer.produce( getImportDescriptor() );
      producer.endDocument();
  } catch ( SAXException except ) {
      throw new ImportExportException( except );
  } catch ( LDAPException except ) {
      throw new ImportExportException( except );
  }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.