Class ExcessiveAttemptsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExcessiveAttemptsException
    extends AccountException
    Thrown when a system is configured to only allow a certain number of authentication attempts over a period of time and the current session has failed to authenticate successfully within that number. The resulting action of such an exception is application-specific, but most systems either temporarily or permanently lock that account to prevent further attempts.
    Since:
    1.5.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertThrown​(@NotNull java.lang.Runnable runnable)
      Asserts that the specified runnable throws this exception and if not throws an junit assertion failure.
      • 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

      • ExcessiveAttemptsException

        public ExcessiveAttemptsException()
        Creates a new ExcessiveAttemptsException.
      • ExcessiveAttemptsException

        public ExcessiveAttemptsException​(java.lang.String message)
        Constructs a new ExcessiveAttemptsException.
        Parameters:
        message - the reason for the exception
      • ExcessiveAttemptsException

        public ExcessiveAttemptsException​(java.lang.Throwable cause)
        Constructs a new ExcessiveAttemptsException.
        Parameters:
        cause - the underlying Throwable that caused this exception to be thrown
      • ExcessiveAttemptsException

        public ExcessiveAttemptsException​(java.lang.String message,
                                          java.lang.Throwable cause)
        Constructs a new ExcessiveAttemptsException.
        Parameters:
        message - the reason for the exception
        cause - the underlying Throwable that caused this exception to be thrown
    • Method Detail

      • assertThrown

        public static void assertThrown​(@NotNull
                                        @NotNull java.lang.Runnable runnable)
        Asserts that the specified runnable throws this exception and if not throws an junit assertion failure.
        Parameters:
        runnable - the runnable to verify