Google Cloud Workflows V1 Client - Class StackTraceElement (0.4.2)

Reference documentation and code samples for the Google Cloud Workflows V1 Client class StackTraceElement.

A single stack element (frame) where an error occurred.

Generated from protobuf message google.cloud.workflows.executions.v1.Execution.StackTraceElement

Namespace

Google \ Cloud \ Workflows \ Executions \ V1 \ Execution

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ step string

The step the error occurred at.

↳ routine string

The routine where the error occurred.

↳ position Google\Cloud\Workflows\Executions\V1\Execution\StackTraceElement\Position

The source position information of the stack trace element.

getStep

The step the error occurred at.

Returns
TypeDescription
string

setStep

The step the error occurred at.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRoutine

The routine where the error occurred.

Returns
TypeDescription
string

setRoutine

The routine where the error occurred.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPosition

The source position information of the stack trace element.

Returns
TypeDescription
Google\Cloud\Workflows\Executions\V1\Execution\StackTraceElement\Position|null

hasPosition

clearPosition

setPosition

The source position information of the stack trace element.

Parameter
NameDescription
var Google\Cloud\Workflows\Executions\V1\Execution\StackTraceElement\Position
Returns
TypeDescription
$this