class SourceLocation extends Message

Indicates a location in the source code of the service for which errors are reported.

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. All fields are optional.

Protobuf type Google\Devtools\Clouderrorreporting\V1beta1\SourceLocation

Methods

__construct()

No description

string
getFilePath()

The source code filename, which can include a truncated relative path, or a full path from a production machine.

setFilePath(string $var)

The source code filename, which can include a truncated relative path, or a full path from a production machine.

int
getLineNumber()

1-based. 0 indicates that the line number is unknown.

setLineNumber(int $var)

1-based. 0 indicates that the line number is unknown.

string
getFunctionName()

Human-readable name of a function or method.

setFunctionName(string $var)

Human-readable name of a function or method.

Details

at line 44
__construct()

at line 56
string getFilePath()

The source code filename, which can include a truncated relative path, or a full path from a production machine.

Generated from protobuf field string file_path = 1;

Return Value

string

at line 68
setFilePath(string $var)

The source code filename, which can include a truncated relative path, or a full path from a production machine.

Generated from protobuf field string file_path = 1;

Parameters

string $var

at line 80
int getLineNumber()

1-based. 0 indicates that the line number is unknown.

Generated from protobuf field int32 line_number = 2;

Return Value

int

at line 91
setLineNumber(int $var)

1-based. 0 indicates that the line number is unknown.

Generated from protobuf field int32 line_number = 2;

Parameters

int $var

at line 105
string getFunctionName()

Human-readable name of a function or method.

The value can include optional context like the class or package name. For example, my.package.MyClass.method in case of Java.

Generated from protobuf field string function_name = 4;

Return Value

string

at line 118
setFunctionName(string $var)

Human-readable name of a function or method.

The value can include optional context like the class or package name. For example, my.package.MyClass.method in case of Java.

Generated from protobuf field string function_name = 4;

Parameters

string $var