Error Reporting V1beta1 API - Class Google::Cloud::ErrorReporting::V1beta1::SourceLocation (v0.9.2)

Reference documentation and code samples for the Error Reporting V1beta1 API class Google::Cloud::ErrorReporting::V1beta1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#file_path

def file_path() -> ::String
Returns
  • (::String) — The source code filename, which can include a truncated relative path, or a full path from a production machine.

#file_path=

def file_path=(value) -> ::String
Parameter
  • value (::String) — The source code filename, which can include a truncated relative path, or a full path from a production machine.
Returns
  • (::String) — The source code filename, which can include a truncated relative path, or a full path from a production machine.

#function_name

def function_name() -> ::String
Returns
  • (::String) — 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.

#function_name=

def function_name=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#line_number

def line_number() -> ::Integer
Returns
  • (::Integer) — 1-based. 0 indicates that the line number is unknown.

#line_number=

def line_number=(value) -> ::Integer
Parameter
  • value (::Integer) — 1-based. 0 indicates that the line number is unknown.
Returns
  • (::Integer) — 1-based. 0 indicates that the line number is unknown.