public class ContextLostException extends IllegalStateException
ServletContext
for a thread of execution is
null
.Constructor and Description |
---|
ContextLostException(Locale locale,
Thread thread)
Creates a new instance of
ContextLostException taking
the Locale of the exception and the Thread trying to
access the context. |
ContextLostException(Thread thread)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the detail message string of this throwable.
|
Thread |
getThread()
Gets the thread accessing the context.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ContextLostException(Thread thread)
ContextLostException(java.util.Locale, java.lang.Thread)
ContextLostException
taking
the Thread
trying to access the context.thread
- The Thread
accessing the context.public ContextLostException(Locale locale, Thread thread)
ContextLostException
taking
the Locale
of the exception and the Thread
trying to
access the context.locale
- The locale of the exception.thread
- The Thread
accessing the context.public Thread getThread()
null
.public String getMessage()
getMessage
in class Throwable
Throwable
instance or
null
.Copyright © 2005-2012 jDTAUS. All Rights Reserved.