List of usage examples for org.apache.ibatis.parsing ParsingException ParsingException
public ParsingException(Throwable cause)
From source file:com.ibatis.common.util.NodeEventParser.java
License:Apache License
private void checkMethodApplicable(NodeEvent n, Class type, Method m) { if (nodeletMap.containsKey(n.value())) { throw new ParsingException("This nodelet parser already has a handler for path " + n.value()); }// w w w .j av a 2s. c om Class<?>[] params = m.getParameterTypes(); if (params.length != 1 || params[0] != XNode.class) { throw new ParsingException("The method " + m.getName() + " on " + type + " does not take a single parameter of type XNode."); } }