|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.moremotion.exception.MoreMotionException
org.moremotion.servlet.ServiceException
org.moremotion.datasrc.DataServiceException
public class DataServiceException
Indicates that something went wrong while generating an ADOM object.
While generating an ADOM, you can redirect page generator to another page by setting redirect page property.
| Constructor Summary | |
|---|---|
DataServiceException(java.lang.Exception rootCause)
Creates a new DataServiceException using a root cause |
|
DataServiceException(java.lang.String message)
Creates a new DataServiceException using a message text |
|
DataServiceException(java.lang.String message,
java.lang.String redirectPage)
Creates a new DataServiceException and sets the page to redirect. |
|
DataServiceException(java.lang.String message,
java.lang.String[] arguments,
java.lang.Exception rootCause)
Creates a new DataServiceException. |
|
| Method Summary | |
|---|---|
java.lang.String |
getRedirectedPage()
Returns redirected page. |
boolean |
isRedirectionRequired()
Returns if redirection is required. |
static void |
redirect(java.lang.String page)
Utility method for throwing an ADOM Exception with a redirection to a specified page. |
| Methods inherited from class org.moremotion.exception.MoreMotionException |
|---|
getArguments, getLocalizedMessage, getMessage, getOriginalSQLException, getResBundleName, getResourceMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace, setResBundleName |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataServiceException(java.lang.Exception rootCause)
rootCause - The Exception that led to this DataServiceExceptionpublic DataServiceException(java.lang.String message)
message - The message test
public DataServiceException(java.lang.String message,
java.lang.String[] arguments,
java.lang.Exception rootCause)
message -
public DataServiceException(java.lang.String message,
java.lang.String redirectPage)
message - Exception message.redirectPage - Page to redirect.| Method Detail |
|---|
public java.lang.String getRedirectedPage()
public boolean isRedirectionRequired()
public static void redirect(java.lang.String page)
throws DataServiceException
DataServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||