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 51 2008-03-10 11:46:54Z 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.
 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

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.


isRedirectionRequired

public boolean isRedirectionRequired()
Returns if redirection is required.


redirect

public static void redirect(java.lang.String page)
                     throws ADOMException
Utility method for throwing an ADOM Exception with a redirection to a specified page.

Throws:
ADOMException


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