protected Object instantiate(Object object, AbstractSession session) throws DescriptorException { try { return transformer.buildAttributeValue(getRow(), object, session); } catch (DescriptorException ex) { Throwable nestedException = ex.getInternalException(); if (nestedException instanceof IllegalAccessException) { throw DescriptorException.illegalAccessWhileInstantiatingMethodBasedProxy(nestedException); } else if (nestedException instanceof IllegalArgumentException) { throw DescriptorException.illegalArgumentWhileInstantiatingMethodBasedProxy(nestedException); } else if (nestedException instanceof InvocationTargetException) { throw DescriptorException.targetInvocationWhileInstantiatingMethodBasedProxy(nestedException); } else { throw ex; } } }
protected Object instantiate(Object object, AbstractSession session) throws DescriptorException { try { return transformer.buildAttributeValue(getRow(), object, session); } catch (DescriptorException ex) { Throwable nestedException = ex.getInternalException(); if (nestedException instanceof IllegalAccessException) { throw DescriptorException.illegalAccessWhileInstantiatingMethodBasedProxy(nestedException); } else if (nestedException instanceof IllegalArgumentException) { throw DescriptorException.illegalArgumentWhileInstantiatingMethodBasedProxy(nestedException); } else if (nestedException instanceof InvocationTargetException) { throw DescriptorException.targetInvocationWhileInstantiatingMethodBasedProxy(nestedException); } else { throw ex; } } }
protected Object instantiate(Object object, AbstractSession session) throws DescriptorException { try { return transformer.buildAttributeValue(getRow(), object, session); } catch (DescriptorException ex) { Throwable nestedException = ex.getInternalException(); if (nestedException instanceof IllegalAccessException) { throw DescriptorException.illegalAccessWhileInstantiatingMethodBasedProxy(nestedException); } else if (nestedException instanceof IllegalArgumentException) { throw DescriptorException.illegalArgumentWhileInstantiatingMethodBasedProxy(nestedException); } else if (nestedException instanceof InvocationTargetException) { throw DescriptorException.targetInvocationWhileInstantiatingMethodBasedProxy(nestedException); } else { throw ex; } } }