> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# FunctionRunError

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

[Source: node-sdk/src/lib/client/types.gen.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/lib/client/types.gen.ts)

```typescript theme={null}
export type FunctionRunError = {
    /**
     * Kind
     *
     * expected: the run was rejected on purpose; retryable: a new run may succeed
     */
    kind: 'expected' | 'retryable' | 'unexpected';
    /**
     * Type
     *
     * The exception class name
     */
    type: string;
    /**
     * Mro
     *
     * The exception's class names, most derived first
     */
    mro: Array<string>;
    /**
     * Code
     *
     * A stable code, by default the class name in snake_case
     */
    code: string;
    /**
     * Message
     *
     * The exception message
     */
    message: string;
    /**
     * Heal
     *
     * Whether self-healing may rewrite the function for this error
     */
    heal: boolean;
    /**
     * Retry
     *
     * Whether the caller may retry with a new run
     */
    retry: boolean;
    /**
     * Status Code
     *
     * Informational HTTP status for the error
     */
    status_code: number;
    /**
     * Source
     *
     * class: from the exception class; config: the function's expected_errors; default: neither
     */
    source: 'class' | 'config' | 'default';
};
```

## Fields

**kind** `"expected" | "retryable" | "unexpected"` *required*

expected: the run was rejected on purpose; retryable: a new run may succeed

**type** `string` *required*

The exception class name

**mro** `string[]` *required*

The exception's class names, most derived first

**code** `string` *required*

A stable code, by default the class name in snake\_case

**message** `string` *required*

The exception message

**heal** `boolean` *required*

Whether self-healing may rewrite the function for this error

**retry** `boolean` *required*

Whether the caller may retry with a new run

**status\_code** `number` *required*

Informational HTTP status for the error

**source** `"class" | "config" | "default"` *required*

class: from the exception class; config: the function's expected\_errors; default: neither


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.