org.moremotion.datasrc
Class DataServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.moremotion.exception.MoreMotionException
              extended by org.moremotion.servlet.ServiceException
                  extended by org.moremotion.datasrc.DataServiceException
All Implemented Interfaces:
java.io.Serializable

public class DataServiceException
extends ServiceException

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: DataServiceException.java 51 2008-03-10 11:46:54Z erkan $
See Also:
Serialized Form

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

DataServiceException

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

Parameters:
rootCause - The Exception that led to this DataServiceException

DataServiceException

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

Parameters:
message - The message test

DataServiceException

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

Parameters:
message -

DataServiceException

public DataServiceException(java.lang.String message,
                            java.lang.String redirectPage)
Creates a new DataServiceException 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 DataServiceException
Utility method for throwing an ADOM Exception with a redirection to a specified page.

Throws:
DataServiceException


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