# SerialErrorKind

`import { SerialErrorKind } from "destack:device/binding";`

Serial error kind.

```ds title="SerialErrorKind"
export enum SerialErrorKind {
    Unknown = 1,
    Break = 2,
    Framing = 3,
    Parity = 4,
    Overrun = 5,
    BufferOverflow = 6,
}
```

[language/library/src/device/binding/serial.ds:208:221](https://github.com/destack-sh/destack/blob/main/language/library/src/device/binding/serial.ds#L208-L221)

## Variants

### `Unknown = 1`

Host did not provide a stronger error classification.

### `Break = 2`

Break condition was detected on the line.

### `Framing = 3`

Framing error was detected on the line.

### `Parity = 4`

Parity error was detected on the line.

### `Overrun = 5`

Receiver overrun was detected on the line.

### `BufferOverflow = 6`

Host receive buffer overflow was detected.
