Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ private void handleEvents() throws InterruptedException {
continue;
} else if (interrupted) {
remove(eventContext);
toDeliver = new InterruptedException();
toDeliver = new InterruptedException("The event handler thread is interrupted");
toRun = eventContext;
continue;
} else if (shuttingDown) {
remove(eventContext);
toDeliver = new RejectedExecutionException();
toDeliver = new RejectedExecutionException("The event queue is shutting down");
toRun = eventContext;
continue;
}
Expand All @@ -264,7 +264,7 @@ private void handleEvents() throws InterruptedException {
}
} else {
if (interrupted) {
toDeliver = new InterruptedException();
toDeliver = new InterruptedException("The event handler thread is interrupted");
} else {
toDeliver = null;
}
Expand Down Expand Up @@ -300,10 +300,10 @@ Exception enqueue(EventContext eventContext,
lock.lock();
try {
if (shuttingDown) {
return new RejectedExecutionException();
return new RejectedExecutionException("The event queue is shutting down");
}
if (interrupted) {
return new InterruptedException();
return new InterruptedException("The event handler thread is interrupted");
}
OptionalLong existingDeadlineNs = OptionalLong.empty();
if (eventContext.tag != null) {
Expand Down