Class 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:
    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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OverloadException​(java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OverloadException

        public OverloadException​(java.lang.String message,
                                 java.lang.Throwable cause)