---
title: streamError
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/stream/streamerror
---

# streamError

Returns an NSError object representing the stream error.

## Declaration

```swift
var streamError: (any Error)? { get }
```

## Return Value

Return Value An NSError object representing the stream error, or nil if no error has been encountered.

## See Also

### Getting Stream Information

- [streamStatus](foundation/stream/streamstatus.md)
