Package ptolemy.util

Class RunnableExceptionCatcher

  • All Implemented Interfaces:
    java.lang.Runnable

    public class RunnableExceptionCatcher
    extends java.lang.Object
    implements java.lang.Runnable
    A class (that implements the proxy design pattern) that encapsulates a runnable, catches the exception and will report the exception to the Ptolemy Message Handler.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Bert Rodiers
    Pt.AcceptedRating:
    Green (rodiers)
    Pt.ProposedRating:
    Green (rodiers)
    • Constructor Summary

      Constructors 
      Constructor Description
      RunnableExceptionCatcher​(java.lang.Runnable runnable)
      Construct an instance that will wrap a runnable, catch its exceptions and report it to the Ptolemy Message Handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Execute the runnable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunnableExceptionCatcher

        public RunnableExceptionCatcher​(java.lang.Runnable runnable)
        Construct an instance that will wrap a runnable, catch its exceptions and report it to the Ptolemy Message Handler.
        Parameters:
        runnable - The runnable.
    • Method Detail

      • run

        public void run()
        Execute the runnable.
        Specified by:
        run in interface java.lang.Runnable