break;
}
}
if((method.getModifiers() & Modifier.STATIC) != 0)
{
throw new TemplateModelException("Method " + method +
" threw an exception", e);
}
else
{
StringBuffer buf = new StringBuffer();
Object[] args = maa.getArgs();
for(int i = 0; i < args.length; ++i)
{
Object arg = args[i];
buf.append(arg == null ? "null" : arg.getClass().getName()).append(',');
}
throw new TemplateModelException("Method " + method +
" threw an exception when invoked on " + object +
" with arguments of types [" + buf + "]", e);
}
}
}