> For AI agents: the complete documentation index is available at https://massaman.dev/llms.txt, the full documentation bundle is available at https://massaman.dev/llms-full.txt.

# unimplemented

Marks a code path as intentionally unsupported and throws if execution reaches it.

```typescript
return unimplemented('mysql driver is not supported')
```

## Usage

### `unimplemented(message?)`

Use `unimplemented` for behavior the application deliberately does not support. Its `never` return type allows it in any expression position, but it always throws at runtime. Use [`todo`](https://massaman.dev/reference/control/todo.md) for unfinished work and [`unreachable`](https://massaman.dev/reference/control/unreachable.md) for logically impossible paths.

```typescript
import { match, unimplemented } from 'massaman'

type Driver = 'postgres' | 'sqlite' | 'mysql'

const migrate = (driver: Driver): void =>
  match(driver)
    .with('postgres', runPostgresMigration)
    .with('sqlite', runSqliteMigration)
    .with('mysql', () => unimplemented('mysql driver is not supported'))
    .exhaustive()
```

#### Parameters


messagestringoptional

optional context appended to the thrown error message.

#### Returns

never returns; the function always throws.

```typescript
never
```

#### Throws

An `Error` with `not implemented`, optionally followed by `message`.

## See also

- [`todo`](https://massaman.dev/reference/control/todo.md) — unfinished behavior
- [`unreachable`](https://massaman.dev/reference/control/unreachable.md) — logically impossible behavior
