Package org.dbwiki.exception.data

Examples of org.dbwiki.exception.data.WikiQueryException


   */
 
  public void add(QueryVariable variable) throws org.dbwiki.exception.WikiException {
   
    if (_variableIndex.containsKey(variable.name().toUpperCase())) {
      throw new WikiQueryException(WikiQueryException.DuplicateVariableDefinition, variable.name() + " already exists");
    }
    _variableIndex.put(variable.name().toUpperCase(), variable);
    _variableListing.add(variable);
  }
View Full Code Here


  }
 
  public QueryVariable get(String name) throws org.dbwiki.exception.WikiException {
   
    if (!_variableIndex.containsKey(name.toUpperCase())) {
      throw new WikiQueryException(WikiQueryException.UnknownVariable, name);
    }
    return _variableIndex.get(name.toUpperCase());
  }
View Full Code Here

TOP

Related Classes of org.dbwiki.exception.data.WikiQueryException

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.