Package org.dbwiki.exception

Examples of org.dbwiki.exception.WikiFatalException


      ResultSet rs = statement.getGeneratedKeys();
      if (rs.next()) {
        timestamp = rs.getInt(1);
        rs.close();
        } else {
            throw new WikiFatalException("There are no generated keys.");
       
     
      // update the schema root with the generated timestamp
      GroupSchemaNode root = schema.root();
      String updateTimestamp =
View Full Code Here


      } else {
        inOp.add(new EQString(strValue));
      }
      return inOp;
    } else {
      throw new WikiFatalException("Unexpected operator " + operatorDef);
    }
  }
View Full Code Here

    case Provenance.ProvenanceTypeUpdate:
      return new ProvenanceUpdate(user, identifier);
    case Provenance.ProvenanceTypeUnknown:
      return new ProvenanceUnknown(user);
    default:
      throw new WikiFatalException("Unknown provenance type " + type);
    }
  }
View Full Code Here

    public void add(PasteNode node) throws org.dbwiki.exception.WikiException {
      if (_nodes.size() > 0) {
        if ((_nodes.get(0).isElement()) && (node.isElement())) {
          _nodes.add(node);
        } else {
          throw new WikiFatalException("Invalid node sequence in document. Trying to add text node to group node");
        }
      } else {
        _nodes.add(node);
      }
    }
View Full Code Here

      Connection con = connector.getConnection();
      _versionIndex = new SQLVersionIndex(con, wiki.name(), wiki.users(), false);
      _schema = new SQLDatabaseSchema(con, _versionIndex, wiki.name());
      con.close();
    } catch (java.sql.SQLException sqlException) {
      throw new WikiFatalException(sqlException);
    }
  }
View Full Code Here

    try {
      //con = connector.getConnection();
      _versionIndex = versionIndex;
      _schema = new SQLDatabaseSchema(con, _versionIndex, wiki.name());
    } catch (java.sql.SQLException sqlException) {
      throw new WikiFatalException(sqlException);
    }
  }
View Full Code Here

        throw wikiException;
      }
      con.commit();
      con.close();
    } catch (java.sql.SQLException sqlException) {
      throw new WikiFatalException(sqlException);
    }
  }
View Full Code Here

    Connection con = _connector.getConnection();
    new DatabaseWriter(con, this).insertAnnotation((NodeIdentifier)identifier, annotation);
    try {
      con.close();
    } catch (java.sql.SQLException sqlException) {
      throw new WikiFatalException(sqlException);
    }
  }
View Full Code Here

        throw wikiException;
      }
      con.commit();
      con.close();
    } catch (java.sql.SQLException sqlException) {
      throw new WikiFatalException(sqlException);
    }
  }
View Full Code Here

        throw wikiException;
      }
      con.commit();
      con.close();
    } catch (java.sql.SQLException sqlException) {
      throw new WikiFatalException(sqlException);
    }
  }
View Full Code Here

TOP

Related Classes of org.dbwiki.exception.WikiFatalException

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.