com.dlsc.flexgantt.model.paging
Class PagingVetoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.dlsc.flexgantt.model.paging.PagingVetoException
All Implemented Interfaces:
java.io.Serializable

public class PagingVetoException
extends java.lang.Exception

A special exception type used by instances of IPagingModelListener in situations where they want to veto a page change. A listener might decide for a veto if for example the information for the next page is not available, yet. The veto of a single listener is enough to interrupt the change.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
Serialized Form

Constructor Summary
PagingVetoException(PagingEvent evt)
          Constructs a new paging veto exception.
PagingVetoException(PagingEvent evt, java.lang.String message)
          Constructs a new paging veto exception.
 
Method Summary
 PagingEvent getPagingEvent()
          Returns the paging event that was vetoed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PagingVetoException

public PagingVetoException(PagingEvent evt)
Constructs a new paging veto exception.

Parameters:
evt - the paging event that is being vetoed
Since:
1.0

PagingVetoException

public PagingVetoException(PagingEvent evt,
                           java.lang.String message)
Constructs a new paging veto exception.

Parameters:
evt - the paging event that is being vetoed
message - an additional message describing the cause of the veto
Since:
1.0
Method Detail

getPagingEvent

public PagingEvent getPagingEvent()
Returns the paging event that was vetoed.

Returns:
the event being vetoed
Since:
1.0