edu.rice.cs.plt.debug
Class LogSink.ErrorMessage
java.lang.Object
edu.rice.cs.plt.debug.LogSink.Message
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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