com.dlsc.flexgantt.model.dateline
Class DatelineModelException

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

public class DatelineModelException
extends java.lang.Exception

The dateline throws exceptions of this type when certain changes to it can not be performed (e.g. the maximum dateline width has been reached).

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

Nested Class Summary
static class DatelineModelException.ID
          An enumerater for distinguishing between different types of dateline model veto exceptions.
 
Constructor Summary
DatelineModelException(java.lang.String msg, DatelineModelException.ID id)
          Constructs a new exception.
 
Method Summary
 DatelineModelException.ID getId()
          Returns the type of the exception.
 
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

DatelineModelException

public DatelineModelException(java.lang.String msg,
                              DatelineModelException.ID id)
Constructs a new exception.

Parameters:
msg - a message to be shown in the console / to the user
id - an additional identifier that allows to distinguish between different types of exceptions
Since:
1.0
Method Detail

getId

public DatelineModelException.ID getId()
Returns the type of the exception.

Returns:
the exception type
Since:
1.0