Module java.desktop
Package java.awt

Class HeadlessException

java.lang.Object
All Implemented Interfaces:
Serializable

public class HeadlessException extends UnsupportedOperationException
Thrown 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. Any code that depends on any of those devices should firstly ensure their availability using the GraphicsEnvironment.isHeadless() method and throw HeadlessException if the latter returns true.
Since:
1.4
See Also: