Package com.couchbase.client.core.error
Class RequestCanceledException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- com.couchbase.client.core.error.RequestCanceledException
-
- All Implemented Interfaces:
Serializable
public class RequestCanceledException extends CouchbaseException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestCanceledException(String message, CancellationReason reason, CancellationErrorContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancellationErrorContext
context()
Returns the error context, if present.CancellationReason
reason()
-
Methods inherited from class com.couchbase.client.core.error.CouchbaseException
getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RequestCanceledException
public RequestCanceledException(String message, CancellationReason reason, CancellationErrorContext ctx)
-
-
Method Detail
-
context
@Uncommitted public CancellationErrorContext context()
Description copied from class:CouchbaseException
Returns the error context, if present.- Overrides:
context
in classCouchbaseException
-
reason
@Uncommitted public CancellationReason reason()
-
-