class ReportedErrorEvent extends Message

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

Protobuf type Google\Devtools\Clouderrorreporting\V1beta1\ReportedErrorEvent

Methods

__construct()

No description

getEventTime()

[Optional] Time when the event occurred.

setEventTime(Timestamp $var)

[Optional] Time when the event occurred.

getServiceContext()

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

setServiceContext(ServiceContext $var)

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

string
getMessage()

[Required] A message describing the error. The message can contain an exception stack in one of the supported programming languages and formats.

setMessage(string $var)

[Required] A message describing the error. The message can contain an exception stack in one of the supported programming languages and formats.

getContext()

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

setContext(ErrorContext $var)

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

Details

at line 48
__construct()

at line 61
Timestamp getEventTime()

[Optional] Time when the event occurred.

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

Generated from protobuf field .google.protobuf.Timestamp event_time = 1;

Return Value

Timestamp

at line 74
setEventTime(Timestamp $var)

[Optional] Time when the event occurred.

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

Generated from protobuf field .google.protobuf.Timestamp event_time = 1;

Parameters

Timestamp $var

at line 86
ServiceContext getServiceContext()

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

Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Return Value

ServiceContext

at line 97
setServiceContext(ServiceContext $var)

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

Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Parameters

ServiceContext $var

at line 112
string getMessage()

[Required] A message describing the error. The message can contain an exception stack in one of the supported programming languages and formats.

In that case, the message is parsed and detailed exception information is returned when retrieving the error event again.

Generated from protobuf field string message = 3;

Return Value

string

at line 126
setMessage(string $var)

[Required] A message describing the error. The message can contain an exception stack in one of the supported programming languages and formats.

In that case, the message is parsed and detailed exception information is returned when retrieving the error event again.

Generated from protobuf field string message = 3;

Parameters

string $var

at line 138
ErrorContext getContext()

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

Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4;

Return Value

ErrorContext

at line 149
setContext(ErrorContext $var)

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

Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4;

Parameters

ErrorContext $var