Serializable
public class HeadlessException extends UnsupportedOperationException
GraphicsEnvironment.isHeadless()
method and throw HeadlessException
if the latter returns
true
.GraphicsEnvironment.isHeadless()
,
Serialized FormConstructor | Description |
---|---|
HeadlessException() |
Constructs new
HeadlessException with empty message. |
HeadlessException(String msg) |
Create a new instance with the specified detailed error message.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getMessage() |
Returns the detail message string of this
HeadlessException . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HeadlessException()
HeadlessException
with empty message.
For such HeadlessException
the default headless error message
may be auto-generated for some platforms.
The text of the default headless message may depend on
whether the GraphicsEnvironment is in fact headless.
That is, the default headless message is both system and environmentally
dependent.public HeadlessException(String msg)
msg
- the error messagepublic String getMessage()
HeadlessException
.
Depending on the platform the message specified in the constructor may
be followed by the default headless error message.
The text of the default headless message may depend on
whether the GraphicsEnvironment is in fact headless.
That is, the default headless message is both system and environmentally
dependent.getMessage
in class Throwable
HeadlessException
instance (which may be null
). Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps