use of com.intergral.fusiondebug.server.FDSignalException in project Lucee by lucee.
the class FDSignal method signal.
public static void signal(PageException pe, boolean caught) {
try {
String id = pe.hashCode() + ":" + caught;
if (Caster.toString(hash.get(), "").equals(id))
return;
List stack = createExceptionStack(pe);
if (stack.size() > 0) {
FDSignalException se = new FDSignalException();
se.setExceptionStack(stack);
se.setRuntimeExceptionCaughtStatus(caught);
se.setRuntimeExceptionExpression(createRuntimeExceptionExpression(pe));
if (pe instanceof NativeException)
se.setRuntimeExceptionType("native");
else
se.setRuntimeExceptionType(pe.getTypeAsString());
se.setStackTrace(pe.getStackTrace());
hash.set(id);
throw se;
}
} catch (FDSignalException fdse) {
// do nothing - will be processed by JDI and handled by FD
}
}
Aggregations