ErrorContext
class ErrorContext extends Message
A description of the context in which an error occurred.
This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.
Protobuf type Google\Devtools\Clouderrorreporting\V1beta1\ErrorContext
Methods
No description
The HTTP request which was processed when the error was triggered.
The HTTP request which was processed when the error was triggered.
The user who caused or was affected by the crash.
The user who caused or was affected by the crash.
The location in the source code where the decision was made to report the error, usually the place where it was logged.
The location in the source code where the decision was made to report the error, usually the place where it was logged.
Details
at line 53
__construct()
at line 65
HttpRequestContext
getHttpRequest()
The HTTP request which was processed when the error was triggered.
Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
at line 77
setHttpRequest(HttpRequestContext $var)
The HTTP request which was processed when the error was triggered.
Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
at line 96
string
getUser()
The user who caused or was affected by the crash.
This can be a user ID, an email address, or an arbitrary token that
uniquely identifies the user.
When sending an error report, leave this field empty if the user was not
logged in. In this case the
Error Reporting system will use other data, such as remote IP address, to
distinguish affected users. See affected_users_count
in
ErrorGroupStats
.
Generated from protobuf field string user = 2;
at line 114
setUser(string $var)
The user who caused or was affected by the crash.
This can be a user ID, an email address, or an arbitrary token that
uniquely identifies the user.
When sending an error report, leave this field empty if the user was not
logged in. In this case the
Error Reporting system will use other data, such as remote IP address, to
distinguish affected users. See affected_users_count
in
ErrorGroupStats
.
Generated from protobuf field string user = 2;
at line 131
SourceLocation
getReportLocation()
The location in the source code where the decision was made to report the error, usually the place where it was logged.
For a logged exception this would be the source line where the
exception is logged, usually close to the place where it was
caught. This value is in contrast to Exception.cause_location
,
which describes the source line where the exception was thrown.
Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
at line 147
setReportLocation(SourceLocation $var)
The location in the source code where the decision was made to report the error, usually the place where it was logged.
For a logged exception this would be the source line where the
exception is logged, usually close to the place where it was
caught. This value is in contrast to Exception.cause_location
,
which describes the source line where the exception was thrown.
Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;