se.lth.cs.realtime
Class RTError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byse.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)
           
 
Method Summary
 long getMillis()
           
 int getSequenceNumber()
           
 
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
 

Field Detail

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).

Constructor Detail

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)
Method Detail

getMillis

public long getMillis()

getSequenceNumber

public int getSequenceNumber()