Package org.apache.hc.core5.http
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hc.core5.http.HttpException
org.apache.hc.core5.http.ProtocolException
org.apache.hc.core5.http.ParseException
- All Implemented Interfaces:
Serializable
Signals a protocol exception due to failure to parse a message element.
- Since:
- 4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionCreates aParseExceptionwithout details.ParseException(String message) Creates aParseExceptionwith a detail message.ParseException(String description, CharSequence text, int off, int len) Creates aParseExceptionwith parsing context details.ParseException(String description, CharSequence text, int off, int len, int errorOffset) Creates aParseExceptionwith parsing context details. -
Method Summary
Methods inherited from class org.apache.hc.core5.http.HttpException
cleanMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
errorOffset
private final int errorOffset
-
-
Constructor Details
-
ParseException
public ParseException()Creates aParseExceptionwithout details. -
ParseException
Creates aParseExceptionwith a detail message.- Parameters:
message- the exception detail message, ornull
-
ParseException
Creates aParseExceptionwith parsing context details.- Since:
- 5.0
-
ParseException
Creates aParseExceptionwith parsing context details.- Since:
- 5.0
-
-
Method Details
-
getErrorOffset
public int getErrorOffset()- Since:
- 5.0
-