Class DspException.Aide

java.lang.Object
org.zkoss.web.servlet.dsp.DspException.Aide
Enclosing class:
DspException

public static class DspException.Aide extends Object
Utilities.

The reason to use a class to hold static utilities is we can override the method's return type later.

  • Constructor Details

    • Aide

      public Aide()
  • Method Details

    • wrap

      public static DspException wrap(Throwable t)
      Converts an exception to DspException if it is not RuntimeException nor Error.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static DspException wrap(Throwable t, String msg)
      Converts an exception to DspException if it is not RuntimeException nor Error.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static DspException wrap(Throwable t, int code, Object[] fmtArgs)
      Converts an exception to DspException if it is not RuntimeException nor Error.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static DspException wrap(Throwable t, int code, Object fmtArg)
      Converts an exception to DspException if it is not RuntimeException nor Error.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static DspException wrap(Throwable t, int code)
      Converts an exception to DspException if it is not RuntimeException nor Error.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)