public class ServiceExceptionInitializer
extends java.lang.Object
Constructor and Description |
---|
ServiceExceptionInitializer(ServiceException se) |
Modifier and Type | Method and Description |
---|---|
void |
parse(ContentType contentType,
java.lang.String body) |
void |
parse(java.net.HttpURLConnection httpConn)
Initializes the ServiceException using the error response data from an
HTTP connection.
|
public ServiceExceptionInitializer(ServiceException se)
public void parse(java.net.HttpURLConnection httpConn) throws ParseException, java.io.IOException
httpConn
- is the http connection from which the error message
(structured or simple) is readjava.io.IOException
- if network error receiving the error responseParseException
public void parse(ContentType contentType, java.lang.String body) throws ParseException
ParseException