| java.lang.Object | |
| ↳ | com.google.api.gbase.client.ServiceErrors |
Extracts and organizes error messages from a
ServiceException or from a
BatchStatus.
This object parses the body of a ServiceException
or the content of a BatchStatus
and gives programmatic access to the error messages embedded in the body
of the exception.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DEFAULT_CONTENT_TYPE | |||||||||||
| dataErrors | Errors with type = data. | ||||||||||
| requestErrors | Errors with type != data. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a ServiceErrors object corresponding
to the errors contained in a
ServiceException. | |||||||||||
Creates a ServiceErrors object corresponding
to the errors contained in
BatchStatus. | |||||||||||
Empty constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Registers a new error.
| |||||||||||
Extracts errors from a
BatchStatus. | |||||||||||
Extracts errors from a
ServiceException. | |||||||||||
Gets all errors.
| |||||||||||
Gets data errors, which apply to the item content, often
to one field in particular.
| |||||||||||
Gets the set of all fields that have errors.
| |||||||||||
Gets all errors for one specific field.
| |||||||||||
Gets non-data errors, which apply to the whole request.
| |||||||||||
Returns a convenient text representation, for debugging.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a ServiceErrors object corresponding
to the errors contained in a ServiceException.
| e |
|---|
Creates a ServiceErrors object corresponding
to the errors contained in BatchStatus.
| status |
|---|
Empty constructor.
Extracts errors from a BatchStatus.
| status | The BatchStatus to be parsed |
|---|
Extracts errors from a ServiceException.
| e | The ServiceException to be parsed |
|---|
Gets all errors.
Gets data errors, which apply to the item content, often to one field in particular.
Gets the set of all fields that have errors.
Gets all errors for one specific field.
| field | Field name, which usually comes from
getErrorFields() |
|---|
Gets non-data errors, which apply to the whole request.
Returns a convenient text representation, for debugging.