| 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
| 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
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
Public Methods
public
void
parse
(ContentType contentType, String 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
| |