use of is.L42.connected.withSafeOperators.pluginWrapper.RefactorErrors.MethodUnfit in project L42 by ElvisResearchGroup.
the class PlgWrapperGenerator method isOkAsException.
private static void isOkAsException(Program p, Path csTop, Path pi) throws ClassUnfit, MethodUnfit {
Path op = _pathForOutside(csTop.getCBar().size(), pi);
if (op == null) {
checkForInside(p.top(), csTop, pi);
return;
}
ClassB l = p.extractClassB(op);
if (!hasExceptionIf(l)) {
throw new RefactorErrors.ClassUnfit().msg("Class " + op + " has no method #exceptionIf(binaryRepr)");
}
}
Aggregations