<!--
{
  "availability" : [
    "DriverKit: 19.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SerialDriverKit",
  "identifier" : "/documentation/SerialDriverKit/IOUserSerial/RxError",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SerialDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserSerial@F@RxError#b#b#b#b#"
  },
  "title" : "RxError"
}
-->

# RxError

Reports errors that occurred when receiving data from the device.

```
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

<doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> on success, or another value if an error occurs. See <doc://com.apple.documentation/documentation/DriverKit/error-codes>.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)