Class TestFailHardException

All Implemented Interfaces:

@Internal public class TestFailHardException extends CouchbaseException
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:
  • Constructor Details

    • TestFailHardException

      public TestFailHardException()
    • TestFailHardException

      public TestFailHardException(String msg)