public static TemplateModelException newInvocationTemplateModelException(Object object, Member member, Throwable e) { return newInvocationTemplateModelException( object, member, (member.getModifiers() & Modifier.STATIC) != 0, member instanceof Constructor, e); }
public static TemplateModelException newInvocationTemplateModelException(Object object, CallableMemberDescriptor callableMemberDescriptor, Throwable e) { return newInvocationTemplateModelException( object, new _DelayedConversionToString(callableMemberDescriptor) { @Override protected String doConversion(Object callableMemberDescriptor) { return ((CallableMemberDescriptor) callableMemberDescriptor).getDeclaration(); } }, callableMemberDescriptor.isStatic(), callableMemberDescriptor.isConstructor(), e); }
/** * Invokes the method, passing it the arguments from the list. The actual * method to call from several overloaded methods will be chosen based * on the classes of the arguments. * @throws TemplateModelException if the method cannot be chosen * unambiguously. */ public Object exec(List arguments) throws TemplateModelException { MemberAndArguments maa = overloadedMethods.getMemberAndArguments(arguments, wrapper); try { return maa.invokeMethod(wrapper, object); } catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException( object, maa.getCallableMemberDescriptor(), e); } }
/** * Invokes the method, passing it the arguments from the list. */ public Object exec(List arguments) throws TemplateModelException { try { return wrapper.invokeMethod(object, (Method) getMember(), unwrapArguments(arguments, wrapper)); } catch (TemplateModelException e) { throw e; } catch (Exception e) { throw _MethodUtil.newInvocationTemplateModelException(object, getMember(), e); } }
} catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException(null, ctor, e); if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException(null, mma.getCallableMemberDescriptor(), e);
public static TemplateModelException newInvocationTemplateModelException(Object object, Member member, Throwable e) { return newInvocationTemplateModelException( object, member, (member.getModifiers() & Modifier.STATIC) != 0, member instanceof Constructor, e); }
public static TemplateModelException newInvocationTemplateModelException(Object object, Member member, Throwable e) { return newInvocationTemplateModelException( object, member, (member.getModifiers() & Modifier.STATIC) != 0, member instanceof Constructor, e); }
public static TemplateModelException newInvocationTemplateModelException(Object object, CallableMemberDescriptor callableMemberDescriptor, Throwable e) { return newInvocationTemplateModelException( object, new _DelayedConversionToString(callableMemberDescriptor) { @Override protected String doConversion(Object callableMemberDescriptor) { return ((CallableMemberDescriptor) callableMemberDescriptor).getDeclaration(); } }, callableMemberDescriptor.isStatic(), callableMemberDescriptor.isConstructor(), e); }
public static TemplateModelException newInvocationTemplateModelException(Object object, CallableMemberDescriptor callableMemberDescriptor, Throwable e) { return newInvocationTemplateModelException( object, new _DelayedConversionToString(callableMemberDescriptor) { @Override protected String doConversion(Object callableMemberDescriptor) { return ((CallableMemberDescriptor) callableMemberDescriptor).getDeclaration(); } }, callableMemberDescriptor.isStatic(), callableMemberDescriptor.isConstructor(), e); }
/** * Invokes the method, passing it the arguments from the list. The actual * method to call from several overloaded methods will be chosen based * on the classes of the arguments. * @throws TemplateModelException if the method cannot be chosen * unambiguously. */ public Object exec(List arguments) throws TemplateModelException { MemberAndArguments maa = overloadedMethods.getMemberAndArguments(arguments, wrapper); try { return maa.invokeMethod(wrapper, object); } catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException( object, maa.getCallableMemberDescriptor(), e); } }
/** * Invokes the method, passing it the arguments from the list. */ public Object exec(List arguments) throws TemplateModelException { try { return wrapper.invokeMethod(object, (Method) getMember(), unwrapArguments(arguments, wrapper)); } catch (TemplateModelException e) { throw e; } catch (Exception e) { throw _MethodUtil.newInvocationTemplateModelException(object, getMember(), e); } }
/** * Invokes the method, passing it the arguments from the list. The actual * method to call from several overloaded methods will be chosen based * on the classes of the arguments. * @throws TemplateModelException if the method cannot be chosen * unambiguously. */ public Object exec(List arguments) throws TemplateModelException { MemberAndArguments maa = overloadedMethods.getMemberAndArguments(arguments, wrapper); try { return maa.invokeMethod(wrapper, object); } catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException( object, maa.getCallableMemberDescriptor(), e); } }
/** * Invokes the method, passing it the arguments from the list. */ public Object exec(List arguments) throws TemplateModelException { try { return wrapper.invokeMethod(object, (Method) getMember(), unwrapArguments(arguments, wrapper)); } catch (TemplateModelException e) { throw e; } catch (Exception e) { throw _MethodUtil.newInvocationTemplateModelException(object, getMember(), e); } }
} catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException(null, ctor, e); if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException(null, mma.getCallableMemberDescriptor(), e);
} catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException(null, ctor, e); if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException(null, mma.getCallableMemberDescriptor(), e);