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:
java.io.Serializable
public class OverloadException extends java.lang.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(java.lang.String message, java.lang.Throwable cause)
-