List of usage examples for com.google.gwt.core.ext.typeinfo NotFoundException NotFoundException
public NotFoundException(String message, Throwable cause)
From source file:org.cruxframework.crux.core.utils.JClassUtils.java
License:Apache License
public static JClassType getType(TypeOracle typeOracle, String className, String viewName) throws NotFoundException { try {/*from w w w. j a v a2 s . co m*/ return typeOracle.getType(className); } catch (Exception e) { String message = "Class [" + className + "] " + (viewName != null ? ", declared on view [" + viewName + "]," : "") + " could not be loaded. " + "\n Possible causes:" + "\n\t 1. Check if any type or subtype used by this class refers to another module and if this module is inherited in the .gwt.xml file." + "\n\t 2. Check if your class or its members belongs to a client package." + "\n\t 3. Check the versions of all your modules."; throw new NotFoundException(message, e); } }