public sealed class ErrorContext : IMessage<ErrorContext>, IEquatable<ErrorContext>, IDeepCloneable<ErrorContext>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Error Reporting v1beta1 API class ErrorContext.
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.
public SourceLocation ReportLocation { get; set; }
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003eErrorContext\u003c/code\u003e class within the Google Cloud Error Reporting v1beta1 API, specifically version 3.0.0-beta04, with the latest version being 3.0.0-beta05.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eErrorContext\u003c/code\u003e class provides a description of the context surrounding an error, which is intended to be supplied by the application during error reporting, except when automatically generated from Google App Engine logs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eErrorContext\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eErrorContext\u003c/code\u003e class has three properties, \u003ccode\u003eHttpRequest\u003c/code\u003e to provide details of the HTTP request during the error, \u003ccode\u003eReportLocation\u003c/code\u003e for the source code location where the error was reported, and \u003ccode\u003eUser\u003c/code\u003e to hold user information associated with the error.\u003c/p\u003e\n"]]],[],null,[]]