public class ThreadingIllegalStateException extends IllegalStateException
This exception is typically thrown when a component, which is not designed to be thread-safe, is accessed or modified by multiple threads concurrently. It provides additional context by encapsulating the offending sequence of operations, usually through a stack trace.
| Constructor and Description |
|---|
ThreadingIllegalStateException(String message,
Throwable cause)
Constructs a new
ThreadingIllegalStateException with the specified detail
message and cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ThreadingIllegalStateException(String message, Throwable cause)
ThreadingIllegalStateException with the specified detail
message and cause.message - The detail message (which is saved for later retrieval by the
Throwable.getMessage() method).cause - The cause (which is saved for later retrieval by the
Throwable.getCause() method). A null value is
permitted and indicates that the cause is nonexistent or unknown.Copyright © 2024. All rights reserved.