public sealed class SourceLocation : IMessage<SourceLocation>, IEquatable<SourceLocation>, IDeepCloneable<SourceLocation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Error Reporting v1beta1 API class SourceLocation.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `SourceLocation` class in the Google Cloud Error Reporting v1beta1 API is used to represent the location in the source code where errors are reported, and it's part of the `Google.Cloud.ErrorReporting.V1Beta1` namespace."],["`SourceLocation` implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from the base `object` class."],["The class offers two constructors, a default `SourceLocation()` and a `SourceLocation(SourceLocation other)` constructor for creating a copy of an existing instance."],["`SourceLocation` includes properties like `FilePath` (the source code file path), `FunctionName` (the human-readable name of the function or method), and `LineNumber` (the 1-based line number where the error occurred, with 0 indicating unknown)."],["The `FunctionName` property is required when reporting errors, except when the error report contains a `message` with a supported exception stack trace, in which case all fields of `SourceLocation` are optional."]]],[]]