1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Add message to InterruptedException if blocking queue was shut down

This commit is contained in:
Florian Schmaus 2019-05-08 15:19:10 +02:00
parent 07c069e1a1
commit 32429bcb9c

View file

@ -1,6 +1,6 @@
/** /**
* *
* Copyright 2014-2018 Florian Schmaus * Copyright 2014-2019 Florian Schmaus
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -110,7 +110,7 @@ public class ArrayBlockingQueueWithShutdown<E> extends AbstractQueue<E> implemen
private void checkNotShutdown() throws InterruptedException { private void checkNotShutdown() throws InterruptedException {
if (isShutdown) { if (isShutdown) {
throw new InterruptedException(); throw new InterruptedException("Queue was already shut down");
} }
} }