Class TestFailHardException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.couchbase.client.core.error.CouchbaseException
com.couchbase.client.core.error.transaction.internal.TestFailHardException
- All Implemented Interfaces:
Serializable
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 Summary
-
Method Summary
Methods inherited from class com.couchbase.client.core.error.CouchbaseException
context, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TestFailHardException
public TestFailHardException() -
TestFailHardException
-