Search in sources :

Example 1 with FDSignalException

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
    }
}
Also used : FDSignalException(com.intergral.fusiondebug.server.FDSignalException) ArrayList(java.util.ArrayList) List(java.util.List) NativeException(lucee.runtime.exp.NativeException)

Aggregations

FDSignalException (com.intergral.fusiondebug.server.FDSignalException)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 NativeException (lucee.runtime.exp.NativeException)1