Class 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:
  1. You must set the response yourself first, or you'll get an internal server error.
  2. You must throw it from handleRequest synchronously.
Author:
Steinar Knutsen
See Also:
  • Constructor Details

    • OverloadException

      public OverloadException(String message, Throwable cause)