se.lth.cs.realtime
Class RTError
java.lang.Object
java.lang.Throwable
java.lang.Error
se.lth.cs.realtime.RTError
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- FixedPeriodError, FixedPriorityError, FrequencyError, OwnerError, RTDelayed, RTInterrupted, SemInterrupted, SemViolation
- public class RTError
- extends java.lang.Error
Unchecked exception to be thrown when handling time, concurrency, or
resources are interrupted or violated in such a way that there is normally
nothing better to do than closing down the application. In rare cases,
an RTError
may be caught, but typically then only for handling
shutdown or emergency situations. Refer to java.lang.Error
for constructors and their arguments.
- See Also:
License
,
Serialized Form
Field Summary |
protected int |
number
Sequence number, ordering errors even within the same tick. |
protected long |
timestamp
The time stamp of this error, in number of (system dependent)
ticks, referring to the time when the error occurred (was created). |
Fields inherited from class java.lang.Error |
|
Constructor Summary |
RTError()
|
RTError(java.lang.String error)
|
RTError(java.lang.String error,
java.lang.Throwable cause)
|
RTError(java.lang.Throwable cause)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
number
protected volatile int number
- Sequence number, ordering errors even within the same tick.
timestamp
protected volatile long timestamp
- The time stamp of this error, in number of (system dependent)
ticks, referring to the time when the error occurred (was created).
RTError
public RTError()
RTError
public RTError(java.lang.String error)
RTError
public RTError(java.lang.String error,
java.lang.Throwable cause)
RTError
public RTError(java.lang.Throwable cause)
getMillis
public long getMillis()
getSequenceNumber
public int getSequenceNumber()