Class AssertionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AssertionException
    extends java.lang.RuntimeException
    Assertion exceptions are thrown when assertion code is invoked and fails to operate properly. They subclass Error, so they will not be caught by exception handlers. Instead, they will cause the VM to halt and print a stack trace.
    See Also:
    Assert, 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

      • AssertionException

        public AssertionException()
      • AssertionException

        public AssertionException​(java.lang.String msg)