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\u003eThe \u003ccode\u003eErrorContext\u003c/code\u003e class in the Google Cloud Error Reporting v1beta1 API provides a description of the context in which an error occurred, and it should be provided by the application unless the error report is auto-generated from Google App Engine logs.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eErrorContext\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eErrorContext\u003c/code\u003e class has two constructors: a default constructor \u003ccode\u003eErrorContext()\u003c/code\u003e and another constructor that takes an \u003ccode\u003eErrorContext\u003c/code\u003e object as a parameter, \u003ccode\u003eErrorContext(ErrorContext other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eErrorContext\u003c/code\u003e includes properties like \u003ccode\u003eHttpRequest\u003c/code\u003e, \u003ccode\u003eReportLocation\u003c/code\u003e, and \u003ccode\u003eUser\u003c/code\u003e, which allow for detailed reporting on the error's context, such as the HTTP request, the source code location of the error, and the affected user.\u003c/p\u003e\n"]]],[],null,[]]