1 // Copyright 2016 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.net; 6 7 import java.util.concurrent.RejectedExecutionException; 8 9 /** 10 * Thrown when an executor runs a submitted runnable inline in {@link 11 * java.util.concurrent.Executor#execute(Runnable)} and {@link 12 * UrlRequest.Builder#allowDirectExecutor} was not called. 13 */ 14 public final class InlineExecutionProhibitedException extends RejectedExecutionException { InlineExecutionProhibitedException()15 public InlineExecutionProhibitedException() { 16 super("Inline execution is prohibited for this request"); 17 } 18 } 19