org.jibx.ws
Class WsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jibx.ws.WsException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WsBindingException, WsConfigurationException, WsNotUnderstoodException

public class WsException
extends Exception

JiBX/WS exception class. This is used for a variety of errors that can be generated by the runtime.

See Also:
Serialized Form

Constructor Summary
WsException(String msg)
          Constructor from message.
WsException(String msg, Throwable root)
          Constructor from message and wrapped exception.
 
Method Summary
 Throwable getRootCause()
          Get root cause exception.
 void printStackTrace()
          Print stack trace to standard error.
 void printStackTrace(PrintStream s)
          Print stack trace to stream.
 void printStackTrace(PrintWriter s)
          Print stack trace to writer.
 String toString()
          Build string representation.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsException

public WsException(String msg)
Constructor from message.

Parameters:
msg - message describing the exception condition

WsException

public WsException(String msg,
                   Throwable root)
Constructor from message and wrapped exception.

Parameters:
msg - message describing the exception condition
root - exception which caused this exception
Method Detail

getRootCause

public Throwable getRootCause()
Get root cause exception.

Returns:
exception that caused this exception

toString

public String toString()
Build string representation. If there's no wrapped exception this just returns the usual text, otherwise it appends the wrapped exception information to the text generated from this one.

Overrides:
toString in class Throwable
Returns:
string representation

printStackTrace

public void printStackTrace()
Print stack trace to standard error. This is an override of the base class method to implement exception chaining.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Print stack trace to stream. This is an override of the base class method to implement exception chaining.

Overrides:
printStackTrace in class Throwable
Parameters:
s - stream for printing stack trace

printStackTrace

public void printStackTrace(PrintWriter s)
Print stack trace to writer. This is an override of the base class method to implement exception chaining.

Overrides:
printStackTrace in class Throwable
Parameters:
s - writer for printing stack trace


Project Web Site