|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--edu.iu.iv.modeling.tarl.TarlException
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.
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 |
public TarlException()
TarlException with the detail message as null
public TarlException(java.lang.String message)
TarlException with the specified detail message
message - Specifies the detail message for the exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||