com.plumtree.remote
Class ServiceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.plumtree.remote.ServiceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessDeniedException, AccountExpiredException, AccountLockedException, CustomAuthenticationFailureException, CustomServiceFailureException, GeneralFailureException, InvalidConfigurationException, InvalidUsernameOrPasswordException, NoLongerExistsException, NoSuchUserException, NotAvailableException, NotInitializedException, PasswordExpiredException, PasswordMustChangeException, RemoteServerUnavailableException, RemoteServerUnreachableException, SearchException, ValidationException

public class ServiceException
extends java.lang.Exception

Base class for exceptions. ServiceExceptions are returned to the portal as SOAP Faults, except by subclasses that return a status code. These subclasses include: AccessDeniedException, AccountExpiredException, AccountLockedException, CustomAuthenticationFailureException, CustomServiceFailureException, GeneralFailureException, InvalidConfigurationException, InvalidUsernameOrPasswordException, NoLongerExistsException, NoSuchUserException, NotAvailableException, NotInitializedException, PasswordExpiredException, PasswordMustChangeException, RemoteServerUnavailableException, RemoteServerUnreachableException, ValidationException, and SearchException.

See Also:
Serialized Form

Constructor Summary
ServiceException()
          Default constructor.
ServiceException(java.lang.Exception e)
          Valued constructor.
ServiceException(int statusCode)
          Valued constructor.
ServiceException(java.lang.String message)
          Valued constructor.
ServiceException(java.lang.String message, java.lang.Exception e)
          Valued constructor.
ServiceException(java.lang.String message, int statusCode)
          Valued constructor.
 
Method Summary
 java.lang.Exception getInnerException()
          Gets the internal exception.
 java.lang.String getMessage()
          Gets the associated message.
 java.lang.String getStackTraceAsString()
          Returns the stack trace of the exception and any internal exception as a string.
 int getStatusCode()
          Gets the associated status code.
 void printStackTrace()
          Prints the stack trace of the exception and any internal exception to the console.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException()
Default constructor.


ServiceException

public ServiceException(java.lang.String message)
Valued constructor.

Parameters:
message - the string to display in the error message

ServiceException

public ServiceException(java.lang.String message,
                        int statusCode)
Valued constructor.

Parameters:
message - the string to display in the error message
statusCode - status (error) code

ServiceException

public ServiceException(int statusCode)
Valued constructor.

Parameters:
statusCode - the status (error) code

ServiceException

public ServiceException(java.lang.Exception e)
Valued constructor.

Parameters:
e - the exception to rethrow

ServiceException

public ServiceException(java.lang.String message,
                        java.lang.Exception e)
Valued constructor.

Parameters:
message - the string to display in the error message
e - the exception to rethrow
Method Detail

getStatusCode

public int getStatusCode()
Gets the associated status code.


getMessage

public java.lang.String getMessage()
Gets the associated message.


getInnerException

public java.lang.Exception getInnerException()
Gets the internal exception.

Returns:
innerException the internal exception or null if none exists

printStackTrace

public void printStackTrace()
Prints the stack trace of the exception and any internal exception to the console.


getStackTraceAsString

public java.lang.String getStackTraceAsString()
Returns the stack trace of the exception and any internal exception as a string.



For additional information on the Oracle® WebCenter Interaction Development Kit, including tutorials, blogs, code samples and more, see the Oracle Technology Network (http://www.oracle.com/technology/index.html).

Copyright ©2010 Oracle® Corporation. All Rights Reserved.