public sealed class SourceLocation : IMessage<SourceLocation>, IEquatable<SourceLocation>, IDeepCloneable<SourceLocation>, IBufferMessage, IMessage
Indicates a location in the source code of the service for which errors are
reported. functionName
must be provided by the application when reporting
an error, unless the error report contains a message
with a supported
exception stack trace. All fields are optional for the later case.
Implements
IMessage<SourceLocation>, IEquatable<SourceLocation>, IDeepCloneable<SourceLocation>, IBufferMessage, IMessageNamespace
Google.Cloud.ErrorReporting.V1Beta1Assembly
Google.Cloud.ErrorReporting.V1Beta1.dll
Constructors
SourceLocation()
public SourceLocation()
SourceLocation(SourceLocation)
public SourceLocation(SourceLocation other)
Parameter | |
---|---|
Name | Description |
other | SourceLocation |
Properties
FilePath
public string FilePath { get; set; }
The source code filename, which can include a truncated relative path, or a full path from a production machine.
Property Value | |
---|---|
Type | Description |
String |
FunctionName
public string FunctionName { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
LineNumber
public int LineNumber { get; set; }
1-based. 0 indicates that the line number is unknown.
Property Value | |
---|---|
Type | Description |
Int32 |