java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.xnio.channels.ConcurrentStreamChannelAccessException
- All Implemented Interfaces:
Serializable
An exception which is thrown when more than one thread tries to access a stream channel at once. While it is
permissible for different threads to read and write stream channels, only one thread may read at a time, and only
one thread may write at a time.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aConcurrentStreamChannelAccessException
with no detail message.Constructs aConcurrentStreamChannelAccessException
with the specified detail message.ConcurrentStreamChannelAccessException
(String msg, Throwable cause) Constructs aConcurrentStreamChannelAccessException
with the specified detail message and cause.Constructs aConcurrentStreamChannelAccessException
with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConcurrentStreamChannelAccessException
public ConcurrentStreamChannelAccessException()Constructs aConcurrentStreamChannelAccessException
with no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
. -
ConcurrentStreamChannelAccessException
Constructs aConcurrentStreamChannelAccessException
with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.- Parameters:
msg
- the detail message
-
ConcurrentStreamChannelAccessException
Constructs aConcurrentStreamChannelAccessException
with the specified cause. The detail message is set to:(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
ConcurrentStreamChannelAccessException
Constructs aConcurrentStreamChannelAccessException
with the specified detail message and cause.- Parameters:
msg
- the detail messagecause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-