Package co.elastic.clients.json
Class JsonpMappingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.json.JsonException
jakarta.json.stream.JsonParsingException
co.elastic.clients.json.JsonpMappingException
- All Implemented Interfaces:
java.io.Serializable
public class JsonpMappingException
extends jakarta.json.stream.JsonParsingException
A mapping exception. The exception message contains the JSON path and location where the problem happened.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description JsonpMappingException(java.lang.String message, jakarta.json.stream.JsonLocation location)
JsonpMappingException(java.lang.String message, java.lang.Throwable cause, jakarta.json.stream.JsonLocation location)
JsonpMappingException(java.lang.Throwable cause, jakarta.json.stream.JsonLocation location)
-
Method Summary
Modifier and Type Method Description static JsonpMappingException
from(java.lang.Throwable cause, int index, jakarta.json.stream.JsonParser parser)
static JsonpMappingException
from(java.lang.Throwable cause, java.lang.Object ref, java.lang.String name, jakarta.json.stream.JsonParser parser)
java.lang.String
getMessage()
java.lang.String
path()
The JSON path where this exception happened.JsonpMappingException
prepend(java.lang.Object ref, int idx)
JsonpMappingException
prepend(java.lang.Object ref, java.lang.String name)
Methods inherited from class jakarta.json.stream.JsonParsingException
getLocation
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
JsonpMappingException
public JsonpMappingException(java.lang.String message, jakarta.json.stream.JsonLocation location) -
JsonpMappingException
public JsonpMappingException(java.lang.String message, java.lang.Throwable cause, jakarta.json.stream.JsonLocation location) -
JsonpMappingException
public JsonpMappingException(java.lang.Throwable cause, jakarta.json.stream.JsonLocation location)
-
-
Method Details
-
getMessage
public java.lang.String getMessage()- Overrides:
getMessage
in classjava.lang.Throwable
-
path
public java.lang.String path()The JSON path where this exception happened. -
prepend
-
prepend
-
from
public static JsonpMappingException from(java.lang.Throwable cause, java.lang.Object ref, java.lang.String name, jakarta.json.stream.JsonParser parser) -
from
public static JsonpMappingException from(java.lang.Throwable cause, int index, jakarta.json.stream.JsonParser parser)
-