ptolemy.actor
Class TypeConflictException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byptolemy.kernel.util.KernelException
              extended byptolemy.actor.TypeConflictException
All Implemented Interfaces:
java.io.Serializable

public class TypeConflictException
extends KernelException

Thrown on detecting type conflicts. This class contains all the instances of Inequality where type conflicts occurred. These inequalities are either not satisfied after type resolution, or contain terms with unacceptable value, such as BaseType.UNKNOWN.

Since:
Ptolemy II 0.2
Version:
$Id: TypeConflictException.java,v 1.44 2004/04/13 05:12:41 cxh Exp $
Author:
Yuhong Xiong
See Also:
Serialized Form
Accepted Rating:
Green (liuxj)
Proposed Rating:
Green (yuhong)

Constructor Summary
TypeConflictException(java.util.List inequalities)
          Construct an Exception with a list of Inequality instances where type conflicts occurred.
TypeConflictException(java.util.List inequalities, java.lang.String detail)
          Construct an Exception with a list of Inequality instances where type conflicts occurred.
 
Method Summary
 java.util.List inequalityList()
          Return a list of Inequality instances where type conflicts occurred.
 
Methods inherited from class ptolemy.kernel.util.KernelException
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, printStackTrace, printStackTrace, printStackTrace, stackTraceToString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeConflictException

public TypeConflictException(java.util.List inequalities)
Construct an Exception with a list of Inequality instances where type conflicts occurred. The detailed message of this Exception will be the string "Type conflicts occurred at the following inequalities:", followed by the list of inequalities. The string describing the inequalities are generated by the toString() method of the class Inequality.

Parameters:
inequalities - a list of Inequality instances.
See Also:
Inequality.toString()

TypeConflictException

public TypeConflictException(java.util.List inequalities,
                             java.lang.String detail)
Construct an Exception with a list of Inequality instances where type conflicts occurred. The detailed message of this Exception will be the specified message, followed by a list of inequalities. The string describing the inequalities are generated by the toString() method of the class Inequality.

Parameters:
inequalities - a list of Inequality instances.
detail - a message.
See Also:
Inequality.toString()
Method Detail

inequalityList

public java.util.List inequalityList()
Return a list of Inequality instances where type conflicts occurred.

Returns:
A List of Inequality instances where type conflicts occurred.