Class GoogleJsonError.ErrorInfo (2.1.0)

public static class GoogleJsonError.ErrorInfo extends GenericJson

Detailed error information.

Inheritance

Object > java.util.AbstractMap > com.google.api.client.util.GenericData > com.google.api.client.json.GenericJson > GoogleJsonError.ErrorInfo

Constructors

ErrorInfo()

public ErrorInfo()

Methods

clone()

public GoogleJsonError.ErrorInfo clone()
Returns
TypeDescription
GoogleJsonError.ErrorInfo
Overrides
com.google.api.client.json.GenericJson.clone()

getDomain()

public final String getDomain()

Returns the error classification or null for none.

Returns
TypeDescription
String

getLocation()

public final String getLocation()

Returns the location in the request that caused the error or null for none or null for none.

Returns
TypeDescription
String

getLocationType()

public final String getLocationType()

Returns the type of location in the request that caused the error or null for none.

Returns
TypeDescription
String

getMessage()

public final String getMessage()

Returns the human readable explanation of the error or null for none.

Returns
TypeDescription
String

getReason()

public final String getReason()

Returns the error reason or null for none.

Returns
TypeDescription
String

set(String fieldName, Object value)

public GoogleJsonError.ErrorInfo set(String fieldName, Object value)
Parameters
NameDescription
fieldNameString
valueObject
Returns
TypeDescription
GoogleJsonError.ErrorInfo
Overrides
com.google.api.client.json.GenericJson.set(java.lang.String,java.lang.Object)

setDomain(String domain)

public final void setDomain(String domain)

Sets the error classification or null for none.

Parameter
NameDescription
domainString

setLocation(String location)

public final void setLocation(String location)

Sets the location in the request that caused the error or null for none or null for none.

Parameter
NameDescription
locationString

setLocationType(String locationType)

public final void setLocationType(String locationType)

Sets the type of location in the request that caused the error or null for none.

Parameter
NameDescription
locationTypeString

setMessage(String message)

public final void setMessage(String message)

Sets the human readable explanation of the error or null for none.

Parameter
NameDescription
messageString

setReason(String reason)

public final void setReason(String reason)

Sets the error reason or null for none.

Parameter
NameDescription
reasonString