public class TimeViolationError extends AssertionError
TimeGuard,
Serialized Form| Constructor and Description |
|---|
TimeViolationError(long detectedTimeInMilliseconds,
TimeGuard.TimeData item)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TimeGuard.TimeData |
getData()
Get the data container which was created during time watcher registration.
|
long |
getDetectedTimeInMilliseconds()
Get the detected time in milliseconds.
|
long |
getDetectedViolationInMilliseconds()
Get the difference between the expected max time and the detected time.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TimeViolationError(long detectedTimeInMilliseconds,
TimeGuard.TimeData item)
detectedTimeInMilliseconds - the detected time in milliseconds.item - the data container contains registration data for time watcherpublic long getDetectedViolationInMilliseconds()
public long getDetectedTimeInMilliseconds()
public TimeGuard.TimeData getData()
Copyright © 2011–2025 Igor Maznitsa. All rights reserved.