---
title: "CFWriteStreamGetError(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfwritestreamgeterror(_:)"
---

# CFWriteStreamGetError(_:)

Returns the error status of a stream.

## Declaration

```swift
func CFWriteStreamGetError(_ stream: CFWriteStream!) -> CFStreamError
```

## Parameters

- `stream`: The stream to examine.

## Return Value

Return Value The error status of stream returned in a CFStreamError structure.

## See Also

### Examining Stream Properties

- [CFWriteStreamCanAcceptBytes(_:)](corefoundation/cfwritestreamcanacceptbytes(_:).md)
- [CFWriteStreamCopyProperty(_:_:)](corefoundation/cfwritestreamcopyproperty(_:_:).md)
- [CFWriteStreamCopyError(_:)](corefoundation/cfwritestreamcopyerror(_:).md)
- [CFWriteStreamGetStatus(_:)](corefoundation/cfwritestreamgetstatus(_:).md)
