|
||||||||||
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.adom.ADOMException
public class ADOMException
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 | |
---|---|
ADOMException(java.lang.Exception rootCause)
Creates a new ADOMException using a root cause |
|
ADOMException(java.lang.String message)
Creates a new ADOMException using a message text |
|
ADOMException(java.lang.String message,
java.lang.String redirectPage)
Creates a new ADOMException and sets the page to redirect. |
|
ADOMException(java.lang.String message,
java.lang.String[] arguments,
java.lang.Exception rootCause)
Creates a new ADOMException. |
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 ADOMException(java.lang.Exception rootCause)
rootCause
- The Exception that led to this ADOMExceptionpublic ADOMException(java.lang.String message)
message
- The message testpublic ADOMException(java.lang.String message, java.lang.String[] arguments, java.lang.Exception rootCause)
message
- public ADOMException(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 ADOMException
ADOMException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |