org.jibx.ws
Class UnhandledWsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jibx.ws.UnhandledWsException
All Implemented Interfaces:
Serializable

public final class UnhandledWsException
extends RuntimeException

An unhandled service exception. The wrap(Throwable) method wraps any checked exception as an UnhandledWsException and returns RuntimeExceptions as is.

See Also:
Serialized Form

Method Summary
 String getLocalizedMessage()
          
 String getMessage()
          
 void printStackTrace()
          
 void printStackTrace(PrintStream err)
          
 void printStackTrace(PrintWriter err)
          
 String toString()
          
static RuntimeException wrap(Throwable t)
          Wraps a non-RuntimeException in an UnhandledWsException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

wrap

public static RuntimeException wrap(Throwable t)
Wraps a non-RuntimeException in an UnhandledWsException.

Parameters:
t - the exception to wrap
Returns:
the original exception, if it was a RuntimeException, or a new UnhandledWsException otherwise.

getLocalizedMessage

public String getLocalizedMessage()

Overrides:
getLocalizedMessage in class Throwable

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable

printStackTrace

public void printStackTrace()

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream err)

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter err)

Overrides:
printStackTrace in class Throwable

toString

public String toString()

Overrides:
toString in class Throwable


Project Web Site