Class ReportedErrorEvent (3.0.0-beta01)

public sealed class ReportedErrorEvent : IMessage<ReportedErrorEvent>, IEquatable<ReportedErrorEvent>, IDeepCloneable<ReportedErrorEvent>, IBufferMessage, IMessage

An error event which is reported to the Error Reporting system.

Inheritance

Object > ReportedErrorEvent

Namespace

Google.Cloud.ErrorReporting.V1Beta1

Assembly

Google.Cloud.ErrorReporting.V1Beta1.dll

Constructors

ReportedErrorEvent()

public ReportedErrorEvent()

ReportedErrorEvent(ReportedErrorEvent)

public ReportedErrorEvent(ReportedErrorEvent other)
Parameter
NameDescription
otherReportedErrorEvent

Properties

Context

public ErrorContext Context { get; set; }

Optional. A description of the context in which the error occurred.

Property Value
TypeDescription
ErrorContext

EventTime

public Timestamp EventTime { get; set; }

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

Property Value
TypeDescription
Timestamp

Message

public string Message { get; set; }

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

Property Value
TypeDescription
String

ServiceContext

public ServiceContext ServiceContext { get; set; }

Required. The service context in which this error has occurred.

Property Value
TypeDescription
ServiceContext