org.moremotion.adom
Class ADOMException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.moremotion.exception.MoreMotionException
              extended by org.moremotion.adom.ADOMException
All Implemented Interfaces:
java.io.Serializable

public class ADOMException
extends MoreMotionException

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.

Version:
$Id: ADOMException.java 425 2009-08-07 13:19:26Z erkan $
See Also:
Serialized Form

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.
 void setRedirectPage(java.lang.String redirectPage)
           
 
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

ADOMException

public ADOMException(java.lang.Exception rootCause)
Creates a new ADOMException using a root cause

Parameters:
rootCause - The Exception that led to this ADOMException

ADOMException

public ADOMException(java.lang.String message)
Creates a new ADOMException using a message text

Parameters:
message - The message test

ADOMException

public ADOMException(java.lang.String message,
                     java.lang.String[] arguments,
                     java.lang.Exception rootCause)
Creates a new ADOMException.

Parameters:
message -

ADOMException

public ADOMException(java.lang.String message,
                     java.lang.String redirectPage)
Creates a new ADOMException and sets the page to redirect.

Parameters:
message - Exception message.
redirectPage - Page to redirect.
Method Detail

getRedirectedPage

public java.lang.String getRedirectedPage()
Returns redirected page.


setRedirectPage

public void setRedirectPage(java.lang.String redirectPage)


Copyright © 2002-2011 MOR YAZILIM. All Rights Reserved.