public class ServiceExceptionInitializer extends Object
| Constructor and Description |
|---|
ServiceExceptionInitializer(ServiceException se) |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(ContentType contentType,
String body) |
void |
parse(HttpURLConnection httpConn)
Initializes the ServiceException using the error response data from an
HTTP connection.
|
public ServiceExceptionInitializer(ServiceException se)
public void parse(HttpURLConnection httpConn) throws ParseException, IOException
httpConn - is the http connection from which the error message
(structured or simple) is readIOException - if network error receiving the error responseParseExceptionpublic void parse(ContentType contentType, String body) throws ParseException
ParseExceptionCopyright © 2012. All Rights Reserved.