class ErrorEvent extends Message

An error event which is returned by the Error Reporting system.

Protobuf type Google\Devtools\Clouderrorreporting\V1beta1\ErrorEvent

Methods

__construct()

No description

getEventTime()

Time when the event occurred as provided in the error report.

setEventTime(Timestamp $var)

Time when the event occurred as provided in the error report.

getServiceContext()

The ServiceContext for which this error was reported.

setServiceContext(ServiceContext $var)

The ServiceContext for which this error was reported.

string
getMessage()

The stack trace that was reported or logged by the service.

setMessage(string $var)

The stack trace that was reported or logged by the service.

getContext()

Data about the context in which the error occurred.

setContext(ErrorContext $var)

Data about the context in which the error occurred.

Details

at line 45
__construct()

at line 58
Timestamp getEventTime()

Time when the event occurred as provided in the error report.

If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

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

Return Value

Timestamp

at line 71
setEventTime(Timestamp $var)

Time when the event occurred as provided in the error report.

If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

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

Parameters

Timestamp $var

at line 83
ServiceContext getServiceContext()

The ServiceContext for which this error was reported.

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

Return Value

ServiceContext

at line 94
setServiceContext(ServiceContext $var)

The ServiceContext for which this error was reported.

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

Parameters

ServiceContext $var

at line 106
string getMessage()

The stack trace that was reported or logged by the service.

Generated from protobuf field string message = 3;

Return Value

string

at line 117
setMessage(string $var)

The stack trace that was reported or logged by the service.

Generated from protobuf field string message = 3;

Parameters

string $var

at line 129
ErrorContext getContext()

Data about the context in which the error occurred.

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

Return Value

ErrorContext

at line 140
setContext(ErrorContext $var)

Data about the context in which the error occurred.

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

Parameters

ErrorContext $var