Package ptolemy.actor
Class TypedIOPort.RunTimeTypeCheckException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ptolemy.kernel.util.KernelException
-
- ptolemy.kernel.util.IllegalActionException
-
- ptolemy.actor.TypedIOPort.RunTimeTypeCheckException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- TypedIOPort
public static class TypedIOPort.RunTimeTypeCheckException extends IllegalActionException
Exception class for run-time type errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RunTimeTypeCheckException(TypedIOPort port, Token token)
Create an run-time type error exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedIOPort
getPort()
Return the port where the exception occurred.Token
getToken()
Return the token that caused the exception.-
Methods inherited from class ptolemy.kernel.util.KernelException
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, getNameable1, getNameable2, printStackTrace, printStackTrace, printStackTrace, stackTraceToString
-
-
-
-
Constructor Detail
-
RunTimeTypeCheckException
public RunTimeTypeCheckException(TypedIOPort port, Token token)
Create an run-time type error exception.- Parameters:
port
- The port where the error occurred.token
- The token that caused the error.
-
-
Method Detail
-
getPort
public TypedIOPort getPort()
Return the port where the exception occurred.- Returns:
- The port.
-
getToken
public Token getToken()
Return the token that caused the exception.- Returns:
- the exception.
-
-