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()
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
-
XContentParseException
public XContentParseException(java.lang.String message) -
XContentParseException
-
XContentParseException
public XContentParseException(XContentLocation location, java.lang.String message, java.lang.Exception cause)
-
-
Method Details
-
getLineNumber
public int getLineNumber() -
getColumnNumber
public int getColumnNumber() -
getLocation
-
getMessage
public java.lang.String getMessage()- Overrides:
getMessage
in classjava.lang.Throwable
-