Class TestFailHard

  • All Implemented Interfaces:
    java.io.Serializable

    @Internal
    public class TestFailHard
    extends java.lang.RuntimeException
    Used only in testing: injects an error that will be handled as FAIL_HARD. This is not an error class the transaction library would ever raise voluntarily. It is designed to simulate an application crash or similar. The transaction will not rollback and will stop abruptly. However, for testing purposes, a TransactionFailed will still be raised, correct in all respects including the attempts field.
    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

      • TestFailHard

        public TestFailHard()
      • TestFailHard

        public TestFailHard​(java.lang.String msg)