# rejectSection

> **rejectSection**<`E`>(`sections`, `tag`, `factories`, `detail`): `void`

Defined in: [packages/wire/src/guards.ts:112](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/wire/src/guards.ts#L112)

Reject an artifact carrying a section its layout forbids.

## Type Parameters

### E

`E` *extends* [`KnotkitError`](/reference/knotkit/errors/classes/knotkiterror/)

## Parameters

### sections

readonly [`WireSection`](/reference/knotkit/wire/interfaces/wiresection/)\[]

### tag

`number`

### factories

[`WireFailureFactories`](/reference/knotkit/wire/type-aliases/wirefailurefactories/)<`E`>

### detail

`string`

## Returns

`void`

## Throws

The package-owned `invalid-section-geometry` error.
