# Stackdriver Monitoring V3 Client - Class QueryError (2.2.2)

2.2.2 (latest) 2.2.1 2.1.2 2.0.1 1.12.1 1.11.1 1.10.3 1.9.0 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.2 1.2.2 Reference documentation and code samples for the Stackdriver Monitoring V3 Client class QueryError.

An error associated with a query in the time series query language format.

Generated from protobuf message `google.monitoring.v3.QueryError`

## Namespace

Google \\ Cloud \\ Monitoring \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ locator` | `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TextLocator` The location of the time series query language text that this error applies to. |
| `↳ message` | `string` The error message. |

### getLocator

The location of the time series query language text that this error applies
to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TextLocator|null` |   |

### hasLocator

### clearLocator

### setLocator

The location of the time series query language text that this error applies
to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TextLocator` |

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

### getMessage

The error message.

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

### setMessage

The error message.

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

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