String result = "";
Locale strLocale = invocation.getInvocationContext().getLocale();
try {
result = invocation.invoke();
} catch (DataAccessException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
DataAccessException_MESSAGE, strLocale));
} catch (NullPointerException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
NullPointerException_MESSAGE, strLocale));
} catch (IOException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
IOException_MESSAGE, strLocale));
} catch (ClassNotFoundException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
ClassNotFoundException_MESSAGE, strLocale));
} catch (ArithmeticException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
ArithmeticException_MESSAGE, strLocale));
} catch (ArrayIndexOutOfBoundsException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
ArrayIndexOutOfBoundsException_MESSAGE, strLocale));
} catch (IllegalArgumentException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
IllegalArgumentException_MESSAGE, strLocale));
} catch (ClassCastException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
ClassCastException_MESSAGE, strLocale));
} catch (SecurityException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
SecurityException_MESSAGE, strLocale));
} catch (SQLException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
SQLException_MESSAGE, strLocale));
} catch (NoSuchMethodError ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
NoSuchMethodError_MESSAGE, strLocale));
} catch (InternalError ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
InternalError_MESSAGE, strLocale));
} catch (StrongException ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(ex
.getMessage(), strLocale));
} catch (Exception ex) {
throw new StrongException(LocalizedTextUtil.findDefaultText(
Exception_MESSAGE, strLocale));
}
return result;
}