2.2.3 (latest) 2.1.3 2.0.4 1.3.5 1.2.2 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class ErrorHandler.

Custom static error page to be served when an error occurs.

Generated from protobuf message `google.appengine.v1.ErrorHandler`

## Namespace

Google \\ Cloud \\ AppEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error_code` | `int` Error condition this handler applies to. |
| `↳ static_file` | `string` Static file content to be served for this error. |
| `↳ mime_type` | `string` MIME type of file. Defaults to `text/html`. |

### getErrorCode

Error condition this handler applies to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ErrorCode](https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.ErrorHandler.ErrorCode). |

### setErrorCode

Error condition this handler applies to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ErrorCode](https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.ErrorHandler.ErrorCode). |

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

### getStaticFile

Static file content to be served for this error.

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

### setStaticFile

Static file content to be served for this error.

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

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

### getMimeType

MIME type of file. Defaults to `text/html`.

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

### setMimeType

MIME type of file. Defaults to `text/html`.

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

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