edu.iu.iv.modeling.tarl
Class TarlException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--edu.iu.iv.modeling.tarl.TarlException
All Implemented Interfaces:
java.io.Serializable

public class TarlException
extends java.lang.Exception

Defines the exception used by the Tarl model. This exception is used to enforce any constraint imposed by the model. If the constraint is not met, the exception is thrown. For example, a constraint of the model is : An author needs to have exactly one topic. Thus, if an attempt is made to initialize an author object with no topics, the TarlException with the appropriate description is thrown.
It should be noted that this exception is a checked exception and hence needs to be handled explicitly by all the methods.

Author:
Jeegar T Maru
See Also:
Exception, Serialized Form

Constructor Summary
TarlException()
          Creates a new instance of TarlException with the detail message as null
TarlException(java.lang.String message)
          Creates a new instance of TarlException with the specified detail message
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TarlException

public TarlException()
Creates a new instance of TarlException with the detail message as null


TarlException

public TarlException(java.lang.String message)
Creates a new instance of TarlException with the specified detail message

Parameters:
message - Specifies the detail message for the exception