public class HeadlessException extends UnsupportedOperationException
The HeadlessException class provides notifications and error messages when
code that is dependent on a keyboard, display, or mouse is called in an
environment that does not support a keyboard, display, or mouse.