com.yahoo.jdisc.handler.OverloadException Maven / Gradle / Ivy
// Copyright Vespa.ai. 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.
*
* The contract of OverloadException is:
*
*
* - You must set the response yourself first, or you'll get an internal server error.
*
- You must throw it from handleRequest synchronously.
*
*
* @author Steinar Knutsen
*/
public class OverloadException extends RuntimeException {
public OverloadException(String message, Throwable cause) {
super(message, cause);
}
}