Class AssertException

All Implemented Interfaces:
Serializable

public class AssertException extends RuntimeException
Exception thrown when a assert is broken.

The break of a assert imply a programming error. Usually this exception is not thrown directly but from Assert class.
It si not mandatory throw this exception in case of programming error, another possible exceptions are anothers RuntimeException associated to the source problem, for example IndexOutOfBoundsException, IllegalArgumentException or the ominous NullPointerException.

See Also:
  • Constructor Details

    • AssertException

      public AssertException()
    • AssertException

      public AssertException(String s)