public class ConcurrentNotificationException
extends java.lang.RuntimeException
Indicates that a listener has been removed while a notification was in
progress. This exception is typically thrown by a method that removes a
listener registration when the REPORT
listener lock-policy is in use.
When this policy is used, this exception indicates that another thread was just in the progress of notifying the removed listener and the notification of the listener is thus going to happen even though the listener has been removed. However, the fact that the exception has been thrown gives no information about when this notification is going to happen. It could happen after the exception is thrown or could already have happened before the method that threw the exception returned.
Constructor and Description |
---|
ConcurrentNotificationException()
Constructs a new exception with
null as its detail message. |
ConcurrentNotificationException(java.lang.String message)
Constructs a new exception with the specified detail message.
|
ConcurrentNotificationException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
ConcurrentNotificationException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message
of
(cause==null ? null : cause.toString()) (which typically
contains the class and detail message of cause ). |
public ConcurrentNotificationException()
null
as its detail message.
The cause is not initialized, and may subsequently be initialized by a
call to Throwable.initCause(java.lang.Throwable)
.public ConcurrentNotificationException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.public ConcurrentNotificationException(java.lang.Throwable cause)
(cause==null ? null : cause.toString())
(which typically
contains the class and detail message of cause
). This
constructor is useful for exceptions that are little more than wrappers
for other throwables.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.)public ConcurrentNotificationException(java.lang.String message, java.lang.Throwable cause)
cause
is not
automatically incorporated in this exception's detail message.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 © 2014–2017 aquenos GmbH. All rights reserved.