org.genepattern.webservice
Class WebServiceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.genepattern.webservice.WebServiceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnavailableException, WebServiceErrorMessageException

public class WebServiceException
extends java.lang.Exception

Defines a general exception a web service can throw when it encounters problems.

Version:
$Version$
See Also:
Serialized Form

Constructor Summary
WebServiceException()
          Constructs a new web service exeption.
WebServiceException(java.lang.String message)
          Constructs a new web service exeption with the specified message.
WebServiceException(java.lang.String message, java.lang.Throwable rootCause)
          Constructs a new web service exeption when the service needs to throw an exeption and include a message about the "root cause" exception.
WebServiceException(java.lang.Throwable rootCause)
          Constructs a new web service exeption when the service needs to throw an exeption and include a message about the "root cause" exception.
 
Method Summary
 java.lang.Throwable getRootCause()
          Returns the exception that caused this web service exception.
 void printStackTrace()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebServiceException

public WebServiceException()
Constructs a new web service exeption.


WebServiceException

public WebServiceException(java.lang.String message)
Constructs a new web service exeption with the specified message.

Parameters:
message - a String specifying the text of the exception message

WebServiceException

public WebServiceException(java.lang.String message,
                           java.lang.Throwable rootCause)
Constructs a new web service exeption when the service needs to throw an exeption and include a message about the "root cause" exception.

Parameters:
message - a String specifying the text of the exception message
rootCause - the Throwable exception that caused the problem, making this service exeption necessary.

WebServiceException

public WebServiceException(java.lang.Throwable rootCause)
Constructs a new web service exeption when the service needs to throw an exeption and include a message about the "root cause" exception. The exception's message is based on the localized message of the underlying exception.

This method calls the getLocalizedMessage method on the Throwable exception to get the localized exception message.

Parameters:
rootCause - the Throwable exception that caused the problem, making this service exeption necessary.
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the exception that caused this web service exception.

Returns:
the Throwable that caused this service exception

toString

public java.lang.String toString()

printStackTrace

public void printStackTrace()


Hosted by docs.bugaco.com