Exceptions This section contains exceptions defined by the RTSJ.





This section contains exceptions defined by the RTSJ. These exception classes:

Semantics and Requirements

This list establishes the semantics and requirements that are applicable across the classes of this section. Semantics that apply to particular classes, constructors, methods, and fields will be found in the class description and the constructor, method, and field detail sections.

  1. All classes in this section are required.
  2. All exceptions, except AsynchronouslyInterruptedException, are required to have semantics exactly as those of their eventual superclass in the java.* hierarchy.

The AsynchronouslyInterruptedException class is not included in this chapter. It is more closely related to asynchronous operation than to exception handling and so can be found in the Asynchrony chapter.


The need for additional exceptions given the new semantics added by the other sections of this specification is obvious. That the specification attaches new, nontraditional, exception semantics to AsynchronouslyInterruptedException is, perhaps, not so obvious. However, after careful thought, and given our self-imposed directive that only well-defined code blocks would be subject to having their control asynchronously transferred, the chosen mechanism is logical.