Example usage for org.apache.ibatis.parsing ParsingException ParsingException

List of usage examples for org.apache.ibatis.parsing ParsingException ParsingException

Introduction

In this page you can find the example usage for org.apache.ibatis.parsing ParsingException ParsingException.

Prototype

public ParsingException(Throwable cause) 

Source Link

Usage

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.");
    }
}