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 in the cases of subclasses that return a status code. These subclasses include: AccessDeniedException NoLongerExistsException NoSuchUserException NotInitializedException and ValidationException

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 - string to display in error message

ServiceException

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

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

ServiceException

public ServiceException(int statusCode)
Valued constructor.

Parameters:
statusCode - status (error) code

ServiceException

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

Parameters:
e - exception to rethrow

ServiceException

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

Parameters:
message - string to display in error message
e - 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 internal exception or null if none exist

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 IDK, including tutorials, blogs, code samples and more,see the AquaLogic User Interaction Developer Center on BEA dev2dev.

Copyright ©2007 BEA Systems, Inc. All Rights Reserved.