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
@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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestFailHardException()
TestFailHardException(String msg)
-
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 Detail
-
TestFailHardException
public TestFailHardException()
-
TestFailHardException
public TestFailHardException(String msg)
-
-