blob: 20cab5eb249853e7338ec025fd11ab6c465da601 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.handler;
/**
* An exception to signal abort current action, as the container is overloaded.
* Just unroll state as cheaply as possible.
*
* <p>
* The contract of OverloadException (for Jetty) is:
* </p>
*
* <ol>
* <li>You must set the response yourself first, or you'll get 500 internal
* server error.</li>
* <li>You must throw it from handleRequest synchronously.</li>
* </ol>
*
* @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
*/
public class OverloadException extends RuntimeException {
public OverloadException(String message, Throwable cause) {
super(message, cause);
}
}
|