Package ptolemy.util.test
Class RecorderMessageHandler
- java.lang.Object
-
- ptolemy.util.MessageHandler
-
- ptolemy.util.test.RecorderMessageHandler
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
public class RecorderMessageHandler extends MessageHandler
A message handler that records messages.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Green (cxh)
- Pt.ProposedRating:
- Green (cxh)
-
-
Constructor Summary
Constructors Constructor Description RecorderMessageHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_error(java.lang.String info, java.lang.Throwable throwable)
Show the specified message and throwable information and record.java.lang.String
getMessages()
Get the messages recorded so far.void
reset()
Clear the buffer.-
Methods inherited from class ptolemy.util.MessageHandler
_error, _message, _warning, _warning, _yesNoCancelQuestion, _yesNoQuestion, error, error, getMessageHandler, isNonInteractive, message, setMessageHandler, setStatusHandler, shortDescription, status, uncaughtException, warning, warning, yesNoCancelQuestion, yesNoCancelQuestion, yesNoQuestion
-
-
-
-
Method Detail
-
getMessages
public java.lang.String getMessages()
Get the messages recorded so far.- Returns:
- The messages.
-
reset
public void reset()
Clear the buffer.
-
_error
protected void _error(java.lang.String info, java.lang.Throwable throwable)
Show the specified message and throwable information and record.- Overrides:
_error
in classMessageHandler
- Parameters:
info
- The message.throwable
- The throwable.- See Also:
CancelException
-
-