Package com.yahoo.jdisc.handler
Class OverloadException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.yahoo.jdisc.handler.OverloadException
-
- All Implemented Interfaces:
Serializable
public class OverloadException extends RuntimeException
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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverloadException(String message, Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-