Dresden OCL Toolkit

tudresden.ocl.lib
Class OclException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bytudresden.ocl.lib.OclException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OclClassCastException

public class OclException
extends RuntimeException

A runtime exception thrown to indicate that an error occured during evaluation of the constraint. The cause of this error can be an error in the transformed OCL expression. An exception is also thrown if isTrue of an undefined OclBoolean is called. For type errors, OclClassCastException is used.

OclException extends java.lang.RuntimeException so application programmers don't have to keep catching these exceptions that usually result of modelling mistakes.

Author:
Frank Finger
See Also:
Serialized Form

Field Summary
protected  String message
           
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
OclException(String message)
          Create a new OclException with the specified message string.
 
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
 

Field Detail

message

protected String message
Constructor Detail

OclException

public OclException(String message)
Create a new OclException with the specified message string.


Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.