# Google Cloud Workflows V1 Client - Class StackTraceElement (1.3.0)

1.3.0 (latest) 1.2.1 1.1.1 1.0.3 0.5.5 0.4.2 0.3.0 0.2.17 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** ||
|---|---|
| **Name** | **Description** |
| `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` | `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/Executions.V1.Execution.StackTraceElement.Position` The source position information of the stack trace element. |

### getStep

The step the error occurred at.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setStep

The step the error occurred at.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRoutine

The routine where the error occurred.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRoutine

The routine where the error occurred.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPosition

The source position information of the stack trace element.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/Executions.V1.Execution.StackTraceElement.Position|null` |   |

### hasPosition

### clearPosition

### setPosition

The source position information of the stack trace element.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/Executions.V1.Execution.StackTraceElement.Position` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |