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:
java.io.Serializable
public class ParseException extends ProtocolException
Signals a protocol exception due to failure to parse a message element.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
errorOffset
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ParseException()
Creates aParseException
without details.ParseException(java.lang.String message)
Creates aParseException
with a detail message.ParseException(java.lang.String description, java.lang.CharSequence text, int off, int len)
Creates aParseException
with parsing context details.ParseException(java.lang.String description, java.lang.CharSequence text, int off, int len, int errorOffset)
Creates aParseException
with parsing context details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorOffset()
-
Methods inherited from class org.apache.hc.core5.http.HttpException
clean
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
errorOffset
private final int errorOffset
-
-
Constructor Detail
-
ParseException
public ParseException()
Creates aParseException
without details.
-
ParseException
public ParseException(java.lang.String message)
Creates aParseException
with a detail message.- Parameters:
message
- the exception detail message, ornull
-
ParseException
public ParseException(java.lang.String description, java.lang.CharSequence text, int off, int len, int errorOffset)
Creates aParseException
with parsing context details.- Since:
- 5.0
-
ParseException
public ParseException(java.lang.String description, java.lang.CharSequence text, int off, int len)
Creates aParseException
with parsing context details.- Since:
- 5.0
-
-