001 // Copyright 2008 Waterken Inc. under the terms of the MIT X license 002 // found at http://www.opensource.org/licenses/mit-license.html 003 package org.ref_send.log; 004 005 import org.ref_send.deserializer; 006 import org.ref_send.name; 007 008 /** 009 * Logs an uncaught exception. 010 */ 011 public class 012 Problem extends Comment { 013 static private final long serialVersionUID = 1L; 014 015 /** 016 * uncaught exception 017 */ 018 public final Exception reason; 019 020 /** 021 * Constructs an instance. 022 * @param anchor {@link #anchor} 023 * @param timestamp {@link #timestamp} 024 * @param trace {@link #trace} 025 * @param text {@link #text} 026 * @param reason {@link #reason} 027 */ 028 public @deserializer 029 Problem(@name("anchor") final Anchor anchor, 030 @name("timestamp") final Long timestamp, 031 @name("trace") final Trace trace, 032 @name("text") final String text, 033 @name("reason") final Exception reason) { 034 super(anchor, timestamp, trace, text); 035 this.reason = reason; 036 } 037 }