|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.plumtree.remote.ServiceException
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.
| 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 |
public ServiceException()
public ServiceException(java.lang.String message)
message - the string to display in the error message
public ServiceException(java.lang.String message,
int statusCode)
message - the string to display in the error messagestatusCode - status (error) codepublic ServiceException(int statusCode)
statusCode - the status (error) codepublic ServiceException(java.lang.Exception e)
e - the exception to rethrow
public ServiceException(java.lang.String message,
java.lang.Exception e)
message - the string to display in the error messagee - the exception to rethrow| Method Detail |
public int getStatusCode()
public java.lang.String getMessage()
public java.lang.Exception getInnerException()
public void printStackTrace()
public java.lang.String getStackTraceAsString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2008 Oracle® Corporation. All Rights Reserved.