public final class ErrorContext
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Error Reporting API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ErrorContext() |
Modifier and Type | Method and Description |
---|---|
ErrorContext |
clone() |
HttpRequestContext |
getHttpRequest()
The HTTP request which was processed when the error was triggered.
|
SourceLocation |
getReportLocation()
The location in the source code where the decision was made to report the error, usually the
place where it was logged.
|
java.util.List<SourceReference> |
getSourceReferences()
Source code that was used to build the executable which has caused the given error message.
|
java.lang.String |
getUser()
The user who caused or was affected by the crash.
|
ErrorContext |
set(java.lang.String fieldName,
java.lang.Object value) |
ErrorContext |
setHttpRequest(HttpRequestContext httpRequest)
The HTTP request which was processed when the error was triggered.
|
ErrorContext |
setReportLocation(SourceLocation reportLocation)
The location in the source code where the decision was made to report the error, usually the
place where it was logged.
|
ErrorContext |
setSourceReferences(java.util.List<SourceReference> sourceReferences)
Source code that was used to build the executable which has caused the given error message.
|
ErrorContext |
setUser(java.lang.String user)
The user who caused or was affected by the crash.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public HttpRequestContext getHttpRequest()
null
for nonepublic ErrorContext setHttpRequest(HttpRequestContext httpRequest)
httpRequest
- httpRequest or null
for nonepublic SourceLocation getReportLocation()
null
for nonepublic ErrorContext setReportLocation(SourceLocation reportLocation)
reportLocation
- reportLocation or null
for nonepublic java.util.List<SourceReference> getSourceReferences()
null
for nonepublic ErrorContext setSourceReferences(java.util.List<SourceReference> sourceReferences)
sourceReferences
- sourceReferences or null
for nonepublic java.lang.String getUser()
null
for nonepublic ErrorContext setUser(java.lang.String user)
user
- user or null
for nonepublic ErrorContext set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ErrorContext clone()
clone
in class com.google.api.client.json.GenericJson