public final class ErrorEvent
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 |
---|
ErrorEvent() |
Modifier and Type | Method and Description |
---|---|
ErrorEvent |
clone() |
ErrorContext |
getContext()
Data about the context in which the error occurred.
|
java.lang.String |
getEventTime()
Time when the event occurred as provided in the error report.
|
java.lang.String |
getMessage()
The stack trace that was reported or logged by the service.
|
ServiceContext |
getServiceContext()
The `ServiceContext` for which this error was reported.
|
ErrorEvent |
set(java.lang.String fieldName,
java.lang.Object value) |
ErrorEvent |
setContext(ErrorContext context)
Data about the context in which the error occurred.
|
ErrorEvent |
setEventTime(java.lang.String eventTime)
Time when the event occurred as provided in the error report.
|
ErrorEvent |
setMessage(java.lang.String message)
The stack trace that was reported or logged by the service.
|
ErrorEvent |
setServiceContext(ServiceContext serviceContext)
The `ServiceContext` for which this error was reported.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public ErrorContext getContext()
null
for nonepublic ErrorEvent setContext(ErrorContext context)
context
- context or null
for nonepublic java.lang.String getEventTime()
null
for nonepublic ErrorEvent setEventTime(java.lang.String eventTime)
eventTime
- eventTime or null
for nonepublic java.lang.String getMessage()
null
for nonepublic ErrorEvent setMessage(java.lang.String message)
message
- message or null
for nonepublic ServiceContext getServiceContext()
null
for nonepublic ErrorEvent setServiceContext(ServiceContext serviceContext)
serviceContext
- serviceContext or null
for nonepublic ErrorEvent set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ErrorEvent clone()
clone
in class com.google.api.client.json.GenericJson