Package com.common.tool

Examples of com.common.tool.StrongException


    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;
  }
View Full Code Here

TOP

Related Classes of com.common.tool.StrongException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.