edu.rice.cs.plt.debug
Class LogSink.ErrorMessage

java.lang.Object
  extended by edu.rice.cs.plt.debug.LogSink.Message
      extended by edu.rice.cs.plt.debug.LogSink.ErrorMessage
All Implemented Interfaces:
Serializable
Enclosing interface:
LogSink

public static class LogSink.ErrorMessage
extends LogSink.Message

A message logging the occurrence of some error (a Throwable). Serialization may fail if the Throwable is not serializable.

See Also:
Serialized Form

Constructor Summary
LogSink.ErrorMessage(LogSink.ErrorMessage copy)
           
LogSink.ErrorMessage(ThreadSnapshot thread, String text, Throwable error)
           
LogSink.ErrorMessage(ThreadSnapshot thread, Throwable error)
           
 
Method Summary
<T> T
apply(LogSink.MessageVisitor<? extends T> visitor)
           
 Throwable error()
           
 void send(LogSink sink)
           
 LogSink.ErrorMessage serializable()
          Convert the message to a form that is guaranteed to be serializable (e.g., invokes toString() on objects of arbitrary type).
 
Methods inherited from class edu.rice.cs.plt.debug.LogSink.Message
caller, stack, text, thread, time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSink.ErrorMessage

public LogSink.ErrorMessage(ThreadSnapshot thread,
                            Throwable error)

LogSink.ErrorMessage

public LogSink.ErrorMessage(ThreadSnapshot thread,
                            String text,
                            Throwable error)

LogSink.ErrorMessage

public LogSink.ErrorMessage(LogSink.ErrorMessage copy)
Method Detail

error

public Throwable error()

send

public void send(LogSink sink)
Specified by:
send in class LogSink.Message

apply

public <T> T apply(LogSink.MessageVisitor<? extends T> visitor)
Specified by:
apply in class LogSink.Message

serializable

public LogSink.ErrorMessage serializable()
Description copied from class: LogSink.Message
Convert the message to a form that is guaranteed to be serializable (e.g., invokes toString() on objects of arbitrary type).

Specified by:
serializable in class LogSink.Message