---
title: CGError.typeCheck
framework: coregraphics
role: symbol
role_heading: Case
path: coregraphics/cgerror/typecheck
---

# CGError.typeCheck

A data type or token was encountered that did not match the expected type or token.

## Declaration

```swift
case typeCheck
```

## See Also

### Constants

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