use of com.intergral.fusiondebug.server.FDLanguageException in project Lucee by lucee.
the class FDVariableComparator method getVariables.
private static List getVariables(FDStackFrameImpl frame, PageContextImpl pc, List list, String strScope) throws FDLanguageException {
Scope scope;
try {
scope = pc.scope(strScope, null);
if (scope != null)
return copyValues(frame, list, scope);
Object value = pc.undefinedScope().get(strScope, null);
if (value != null) {
if (value instanceof Struct)
return copyValues(frame, new ArrayList(), (Struct) value);
throw new FDLanguageException("[" + strScope + "] is not of type scope, type is [" + Caster.toTypeName(value) + "]");
}
throw new FDLanguageException("[" + strScope + "] does not exist in the current context");
} catch (PageException e) {
throw new FDLanguageException(e);
}
}
use of com.intergral.fusiondebug.server.FDLanguageException in project Lucee by lucee.
the class FDVariableComparator method getVariables.
@Override
public List getVariables() {
Iterator it = getScopeNames().iterator();
List list = new ArrayList();
while (it.hasNext()) {
try {
getVariables(this, pc, list, (String) it.next());
} catch (FDLanguageException e) {
SystemOut.printDate(e);
}
}
return sort(list);
}
Aggregations