org.zkoss.zest
Class ZestException.Aide

java.lang.Object
  extended by org.zkoss.zest.ZestException.Aide
Enclosing class:
ZestException

public static class ZestException.Aide
extends java.lang.Object

Utilities to wrap ZestException.

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


Constructor Summary
ZestException.Aide()
           
 
Method Summary
static ZestException wrap(java.lang.Throwable t)
          Converts an exception to ZestException or OperationException depending on whether t implements Expetable.
static ZestException wrap(java.lang.Throwable t, int code)
          Converts an exception to ZestException or OperationException depending on whether t implements Expetable.
static ZestException wrap(java.lang.Throwable t, int code, java.lang.Object fmtArg)
          Converts an exception to ZestException or OperationException depending on whether t implements Expetable.
static ZestException wrap(java.lang.Throwable t, int code, java.lang.Object[] fmtArgs)
          Converts an exception to ZestException or OperationException depending on whether t implements Expetable.
static ZestException wrap(java.lang.Throwable t, java.lang.String msg)
          Converts an exception to ZestException or OperationException depending on whether t implements Expetable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZestException.Aide

public ZestException.Aide()
Method Detail

wrap

public static ZestException wrap(java.lang.Throwable t)
Converts an exception to ZestException or OperationException depending on whether t implements Expetable.

See Also:
Exceptions.wrap(java.lang.Throwable, java.lang.Class)

wrap

public static ZestException wrap(java.lang.Throwable t,
                                 java.lang.String msg)
Converts an exception to ZestException or OperationException depending on whether t implements Expetable.

See Also:
Exceptions.wrap(java.lang.Throwable, java.lang.Class)

wrap

public static ZestException wrap(java.lang.Throwable t,
                                 int code,
                                 java.lang.Object[] fmtArgs)
Converts an exception to ZestException or OperationException depending on whether t implements Expetable.

See Also:
Exceptions.wrap(java.lang.Throwable, java.lang.Class)

wrap

public static ZestException wrap(java.lang.Throwable t,
                                 int code,
                                 java.lang.Object fmtArg)
Converts an exception to ZestException or OperationException depending on whether t implements Expetable.

See Also:
Exceptions.wrap(java.lang.Throwable, java.lang.Class)

wrap

public static ZestException wrap(java.lang.Throwable t,
                                 int code)
Converts an exception to ZestException or OperationException depending on whether t implements Expetable.

See Also:
Exceptions.wrap(java.lang.Throwable, java.lang.Class)


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.