| java.lang.Object | |
| ↳ | com.google.gdata.util.ErrorDomain.ErrorCode |
ErrorCode objects represent an error code within an error domain. An inner class is used to make it difficult to construct an ErrorCode that accidentally refers to the wrong subclass of ErrorDomain, or to have more than one ErrorDomain object of the same subclass.
An ErrorCode is immutable. The withInternalReason(String),
withExtendedHelp(String), and withSendReport(String)
methods can be used to create new ErrorCodes as modified versions of
existing ones.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| codeName | |||||||||||
| extendedHelp | |||||||||||
| internalReason | |||||||||||
| sendReport | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new error code with the given code name.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the name of this ErrorCode, which must be unique within its domain.
| |||||||||||
Returns debugging information.
| |||||||||||
Retrieve the name of the domain of this ErrorCode.
| |||||||||||
Gets the extended help URI.
| |||||||||||
Gets the internal reason (unlocalized explanation) associated with this
ErrorCode.
| |||||||||||
Return the location of the error.
| |||||||||||
Return the type of error location.
| |||||||||||
Gets the URI to which a report should be sent when this error
is received.
| |||||||||||
This method is deprecated.
Use
withInternalReason(String) instead.
| |||||||||||
Returns a copy of this ErrorCode with the given extended help URI set.
| |||||||||||
Returns a copy of this ErrorCode with the given internal reason
(un-internationalized explanation) set.
| |||||||||||
Returns a copy of this ErrorCode with the given send report URI set.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.util.ErrorContent
| |||||||||||
Construct a new error code with the given code name.
| codeName | The codename of this error code, must not be null. |
|---|
Gets the name of this ErrorCode, which must be unique within its domain.
The value will appear as the content of the code element in the
XML error format.
Returns debugging information.
Retrieve the name of the domain of this ErrorCode.
Gets the extended help URI. This can be used to retrieve a
detailed explanation of the error code. The value will appear
as the content of the extendedHelp element in the XML
error format.
Gets the internal reason (unlocalized explanation) associated with this
ErrorCode. The value will appear as the content of the
internalReason element in the XML error format.
Return the location of the error.
Return the type of error location. See ErrorContent.LocationType for the
available values.
Gets the URI to which a report should be sent when this error
is received. The value will appear as the content of the
sendReport element in the XML error format.
Returns a copy of this ErrorCode with the given extended help URI set.
This can be used to provide a detailed explanation of the error code.
The value will appear as the content of the extendedHelp element
in the XML error format.
| newExtendedHelp |
|---|
Returns a copy of this ErrorCode with the given internal reason
(un-internationalized explanation) set. The value will appear as the
content of the internalReason element in the XML error format.
| newInternalReason |
|---|
Returns a copy of this ErrorCode with the given send report URI set.
This can be used to provide a URI to which a report should be sent when
the error is received. The value will appear as the content of the
sendReport element in the XML error format.
| newSendReport |
|---|