# Stackdriver Error Reporting Client - Class Bootstrap (0.26.1)

0.26.1 (latest) 0.26.0 0.25.3 0.24.0 0.23.1 0.22.10 0.21.1 0.20.2 0.19.12 Reference documentation and code samples for the Stackdriver Error Reporting Client class Bootstrap.

Static methods for bootstrapping Stackdriver Error Reporting.

## Namespace

Google \\ Cloud \\ ErrorReporting

## Methods

### static::prependFileLocation

Return the full path of the prepend file.

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

### static::init

Register hooks for error reporting.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `psrLogger` | `https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/PsrLogger.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### static::getErrorPrefix

Return a string prefix for the given error level.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `level` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | A string prefix for reporting the error. |

### static::getErrorLevelString

Return an error level string for the given PHP error level.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `level` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | An error level string. |

### static::exceptionHandler

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `ex` | `mixed` \\Throwable (PHP 7) or \\Exception (PHP 5) |

### static::errorHandler

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `level` | `int` The error level. |
| `message` | `string` The error message. |
| `file` | `string` The filename that the error was raised in. |
| `line` | `int` The line number that the error was raised at. |

### static::shutdownHandler

Called at exit, to check there's a fatal error and report the error if
any.

## Constants

### DEFAULT_LOGNAME

    Value: 'app-error'