|
||||||||||
| 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 in the cases of subclasses that return a status code. These subclasses include: AccessDeniedException NoLongerExistsException NoSuchUserException NotInitializedException and ValidationException
| 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 - string to display in error message
public ServiceException(java.lang.String message,
int statusCode)
message - string to display in error messagestatusCode - status (error) codepublic ServiceException(int statusCode)
statusCode - status (error) codepublic ServiceException(java.lang.Exception e)
e - exception to rethrow
public ServiceException(java.lang.String message,
java.lang.Exception e)
message - string to display in error messagee - 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 ©2007 BEA Systems, Inc. All Rights Reserved.