Class PathMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- com.couchbase.client.core.error.subdoc.PathMismatchException
-
- All Implemented Interfaces:
Serializable
public class PathMismatchException extends CouchbaseException
Subdocument exception thrown when the path structure conflicts with the document structure (for example, if a path mentions foo.bar[0].baz, but foo.bar is actually a JSON object).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PathMismatchException(SubDocumentErrorContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubDocumentErrorContext
context()
Returns the error context, if present.-
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
-
PathMismatchException
public PathMismatchException(SubDocumentErrorContext ctx)
-
-
Method Detail
-
context
@Uncommitted public SubDocumentErrorContext context()
Description copied from class:CouchbaseException
Returns the error context, if present.- Overrides:
context
in classCouchbaseException
-
-