Class AssertException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AssertException
    extends java.lang.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:
    Serialized Form
    • 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

      • AssertException

        public AssertException()
      • AssertException

        public AssertException​(java.lang.String s)