Class UiException.Aide

java.lang.Object
org.zkoss.zk.ui.UiException.Aide
Enclosing class:
UiException

public static class UiException.Aide extends Object
Utilities to wrap UiException.

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

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts an exception to UiException or OperationException depending on whether t implements Expectable.
    wrap(Throwable t, int code)
    Converts an exception to UiException or OperationException depending on whether t implements Expectable.
    wrap(Throwable t, int code, Object fmtArg)
    Converts an exception to UiException or OperationException depending on whether t implements Expectable.
    wrap(Throwable t, int code, Object[] fmtArgs)
    Converts an exception to UiException or OperationException depending on whether t implements Expectable.
    Converts an exception to UiException or OperationException depending on whether t implements Expectable.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Aide

      public Aide()
  • Method Details

    • wrap

      public static UiException wrap(Throwable t)
      Converts an exception to UiException or OperationException depending on whether t implements Expectable.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static UiException wrap(Throwable t, String msg)
      Converts an exception to UiException or OperationException depending on whether t implements Expectable.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static UiException wrap(Throwable t, int code, Object[] fmtArgs)
      Converts an exception to UiException or OperationException depending on whether t implements Expectable.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static UiException wrap(Throwable t, int code, Object fmtArg)
      Converts an exception to UiException or OperationException depending on whether t implements Expectable.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)
    • wrap

      public static UiException wrap(Throwable t, int code)
      Converts an exception to UiException or OperationException depending on whether t implements Expectable.
      See Also:
      • Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)