public class

ServiceExceptionInitializer

extends Object
java.lang.Object
   ↳ com.google.gdata.util.ServiceExceptionInitializer

Class Overview

The ServiceExceptionInitializer class is used to initialize a ServiceException from either an HTTP connection or an XML structured error represented as a string.

Summary

Fields
private ServiceException currentException
private final ServiceException initialException
Public Constructors
ServiceExceptionInitializer(ServiceException se)
Public Methods
void parse(ContentType contentType, String body)
void parse(HttpURLConnection httpConn)
Initializes the ServiceException using the error response data from an HTTP connection.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private ServiceException currentException

private final ServiceException initialException

Public Constructors

public ServiceExceptionInitializer (ServiceException se)

Parameters
se

Public Methods

public void parse (ContentType contentType, String body)

Parameters
contentType
body

public void parse (HttpURLConnection httpConn)

Initializes the ServiceException using the error response data from an HTTP connection. This constructor is used in the client library to approximately reconstitute the constructor as it appeared in the server.

Parameters
httpConn Is the http connection from which the error message (structured or simple) is read
Throws
IOException if network error receiving the error response
ParseException