---
title: "Error | Grafana k6 documentation"
description: "The error object of a gRPC stream."
---

# Error

The error object is the object that is passed to the `error` event handler function.

Expand table

| Name            | Type   | Description                              |
|-----------------|--------|------------------------------------------|
| `Error.code`    | number | A gRPC error code.                       |
| `Error.details` | array  | A list of details attached to the error. |
| `Error.message` | string | An original error message.               |
