---
title: CGError.illegalArgument
framework: coregraphics
role: symbol
role_heading: Case
path: coregraphics/cgerror/illegalargument
---

# CGError.illegalArgument

One or more of the parameters passed to a function are invalid. Check for NULL pointers.

## Declaration

```swift
case illegalArgument
```

## See Also

### Constants

- [CGError.cannotComplete](coregraphics/cgerror/cannotcomplete.md)
- [CGError.failure](coregraphics/cgerror/failure.md)
- [CGError.invalidConnection](coregraphics/cgerror/invalidconnection.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)
