Do not pass executor shutdown to super constructor

The main constructor for rejected execution exception its executor
shutdown constructor parameter to the super constructor where it would
be used as a formatting parameter. This is a mistake so this commit
fixes this issue.
This commit is contained in:
Jason Tedor 2017-12-05 07:09:53 -05:00
parent 83c8daa5e8
commit 144e1698cf

View File

@ -31,7 +31,7 @@ public class EsRejectedExecutionException extends ElasticsearchException {
private final boolean isExecutorShutdown;
public EsRejectedExecutionException(String message, boolean isExecutorShutdown) {
super(message, isExecutorShutdown);
super(message);
this.isExecutorShutdown = isExecutorShutdown;
}