FileDocCategorySizeDatePackage
HeadlessException.javaAPI DocJava SE 5 API1106Fri Aug 26 14:56:44 BST 2005java.awt

HeadlessException

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.
since
1.4
author
Michael Martak

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public HeadlessException()

      
public HeadlessException(String msg)

        super(msg);
    
Methods Summary
public java.lang.StringgetMessage()

        String superMessage = super.getMessage();
        String headlessMessage = GraphicsEnvironment.getHeadlessMessage();
        
        if (superMessage == null) {
            return headlessMessage;
        } else if (headlessMessage == null) {
            return superMessage;
        } else {
            return superMessage + headlessMessage;
        }