Throw an exception when trying to remove a queue with an id not in use by any queue
This commit is contained in:
parent
0c43e80cf6
commit
df4d479e54
|
@ -137,7 +137,9 @@ public final class Manager
|
|||
}
|
||||
else
|
||||
{
|
||||
/* TODO: Throw an error here */
|
||||
/* Unlock queue before throwing an exception */
|
||||
queuesLock.unlock();
|
||||
throw new TristanableException(this, "Cannot remove a queue with an id not in use");
|
||||
}
|
||||
|
||||
queuesLock.unlock();
|
||||
|
|
Loading…
Reference in New Issue