---
title: CGError.invalidConnection
framework: coregraphics
role: symbol
role_heading: Case
path: coregraphics/cgerror/invalidconnection
---

# CGError.invalidConnection

The parameter representing a connection to the window server is invalid.

## Declaration

```swift
case invalidConnection
```

## See Also

### Constants

- [CGError.cannotComplete](coregraphics/cgerror/cannotcomplete.md)
- [CGError.failure](coregraphics/cgerror/failure.md)
- [CGError.illegalArgument](coregraphics/cgerror/illegalargument.md)
- [CGError.invalidContext](coregraphics/cgerror/invalidcontext.md)
- [CGError.invalidOperation](coregraphics/cgerror/invalidoperation.md)
- [CGError.noneAvailable](coregraphics/cgerror/noneavailable.md)
- [CGError.notImplemented](coregraphics/cgerror/notimplemented.md)
- [CGError.rangeCheck](coregraphics/cgerror/rangecheck.md)
- [CGError.success](coregraphics/cgerror/success.md)
- [CGError.typeCheck](coregraphics/cgerror/typecheck.md)
