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:
Serializable
- Direct Known Subclasses:
NamedObjectNotFoundException
public class XContentParseException extends IllegalArgumentException
Thrown when one of the XContent parsers cannot parse something.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XContentParseException(String message)XContentParseException(XContentLocation location, String message)XContentParseException(XContentLocation location, String message, Exception cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNumber()intgetLineNumber()XContentLocationgetLocation()StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XContentParseException
public XContentParseException(String message)
-
XContentParseException
public XContentParseException(XContentLocation location, String message)
-
XContentParseException
public XContentParseException(XContentLocation location, String message, Exception cause)
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
-
getColumnNumber
public int getColumnNumber()
-
getLocation
@Nullable public XContentLocation getLocation()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-