# Interface: ExplainedError

Defined in: [dev/src/explain.ts:24](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L24)

A runtime error explained for humans and agents. JSON-serialisable.

## Properties

### count

> **count**: `number`

Defined in: [dev/src/explain.ts:37](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L37)

How many times this same error happened.

***

### hint

> **hint**: `string`

Defined in: [dev/src/explain.ts:31](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L31)

A plain-words next step.

***

### kind

> **kind**: [`ErrorKind`](../type-aliases/ErrorKind.md)

Defined in: [dev/src/explain.ts:25](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L25)

***

### message

> **message**: `string`

Defined in: [dev/src/explain.ts:27](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L27)

***

### name

> **name**: `string`

Defined in: [dev/src/explain.ts:26](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L26)

***

### phase?

> `optional` **phase?**: `string`

Defined in: [dev/src/explain.ts:33](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L33)

Loop phase and tick, when the game loop caught it.

***

### reportUrl?

> `optional` **reportUrl?**: `string`

Defined in: [dev/src/explain.ts:40](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L40)

For `debuff-bug`: a prefilled GitHub issue.

***

### scene?

> `optional` **scene?**: `string`

Defined in: [dev/src/explain.ts:34](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L34)

***

### signature?

> `optional` **signature?**: `string`

Defined in: [dev/src/explain.ts:46](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L46)

For `debuff-bug`: the error name and the debuff functions it was thrown from, without line numbers, the
message or any path in the game (`TypeError at spryte.js:Canvas2D.flush`). The same bug gives the same
signature in every game, so `debuff dev` can report it as an automatic papercut.

***

### stack

> **stack**: `string`

Defined in: [dev/src/explain.ts:38](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L38)

***

### tick?

> `optional` **tick?**: `number`

Defined in: [dev/src/explain.ts:35](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L35)

***

### where?

> `optional` **where?**: [`SourceLocation`](SourceLocation.md)

Defined in: [dev/src/explain.ts:29](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/explain.ts#L29)

Where in the game's code to look: the throwing frame, or the call into debuff that failed.
