public class NsTestError extends java.lang.Object implements java.lang.Comparable<NsTestError>
An descriptor for an error seen by NsTest. These are placed in a HashMap keyed by the error's stack trace.
Modifier and Type | Field and Description |
---|---|
private int |
_count |
private long |
_firstOccurrenceTime |
private long |
_lastOccurrenceTime |
private java.lang.Throwable |
_throwable |
Constructor and Description |
---|
NsTestError(java.lang.Throwable throwable)
Construct from a Throwable
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NsTestError that) |
int |
count()
Get the number of times this error was seen
|
long |
getFirstOccurrenceTime()
Get the timestamp of the first occurrence
|
long |
getLastOccurrenceTime()
Get the timestamp of the last occurrence
|
void |
increment()
Increment the number of times this error was seen
|
java.lang.Throwable |
throwable()
Get the Throwable wrapped by this descriptor
|
private java.lang.Throwable _throwable
private int _count
private long _firstOccurrenceTime
private long _lastOccurrenceTime
public NsTestError(java.lang.Throwable throwable)
public java.lang.Throwable throwable()
public int count()
public long getFirstOccurrenceTime()
public long getLastOccurrenceTime()
public int compareTo(NsTestError that)
compareTo
in interface java.lang.Comparable<NsTestError>
public void increment()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.