Package org.dbwiki.exception.data

Examples of org.dbwiki.exception.data.WikiSchemaException


              }
              SchemaNode valueNode = schema.get(valuePath);
              if (valueNode.isAttribute()) {
                this.add(new URLDecodingRule((GroupSchemaNode)node, (AttributeSchemaNode)valueNode));
              } else {
                throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, valueNode + " is not an attribute node");
              }
            } else {
              throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, path + " is not a group node");
            }
          } else {
            throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, definition);
          }
        } catch (java.util.NoSuchElementException noSuchElementException) {
          throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, definition);
        }
      } else {
        throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, definition);
      }
    }
  }
View Full Code Here


  public void add(URLDecodingRule rule) throws org.dbwiki.exception.WikiException {
    Integer key = new Integer(rule.node().id());
    if (!_rules.containsKey(key)) {
      _rules.put(key, rule);
    } else {
      throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, "Duplicate constraint for node " + rule.node());
    }
  }
View Full Code Here

TOP

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

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.