Class XContentParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.elasticsearch.common.xcontent.XContentParseException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
NamedObjectNotFoundException
public class XContentParseException extends java.lang.IllegalArgumentException
Thrown when one of the XContent parsers cannot parse something.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XContentParseException(java.lang.String message)
XContentParseException(XContentLocation location, java.lang.String message)
XContentParseException(XContentLocation location, java.lang.String message, java.lang.Exception cause)
-
Method Summary
Modifier and Type Method Description int
getColumnNumber()
int
getLineNumber()
XContentLocation
getLocation()
java.lang.String
getMessage()
-
-
-
Constructor Detail
-
XContentParseException
public XContentParseException(java.lang.String message)
-
XContentParseException
public XContentParseException(XContentLocation location, java.lang.String message)
-
XContentParseException
public XContentParseException(XContentLocation location, java.lang.String message, java.lang.Exception cause)
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
-
getColumnNumber
public int getColumnNumber()
-
getLocation
@Nullable public XContentLocation getLocation()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-