---
title: RxError
framework: serialdriverkit
role: symbol
role_heading: Instance Method
path: serialdriverkit/iouserserial/rxerror
---

# RxError

Reports errors that occurred when receiving data from the device.

## Declaration

```occ
virtual kern_return_t RxError(bool overrun, bool gotBreak, bool framingError, bool parityError);
```

## Parameters

- `overrun`: A Boolean value indicating whether a buffer overrun error occurred.
- `gotBreak`: A Boolean value indicating whether a break error occurred.
- `framingError`: A Boolean value indicating whether a framing error occurred.
- `parityError`: A Boolean value indicating whether a parity error occurred.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## Discussion

Discussion Call this method when you encounter an error getting data from the device.

## See Also

### Transmitting and Receiving Data

- [RxDataAvailable](serialdriverkit/iouserserial/rxdataavailable.md)
- [RxFreeSpaceAvailable](serialdriverkit/iouserserial/rxfreespaceavailable.md)
- [TxDataAvailable](serialdriverkit/iouserserial/txdataavailable.md)
- [TxFreeSpaceAvailable](serialdriverkit/iouserserial/txfreespaceavailable.md)
