---
title: PredicateError
framework: foundation
role: symbol
role_heading: Structure
path: foundation/predicateerror
---

# PredicateError

An error thrown while evaluating a predicate.

## Declaration

```swift
struct PredicateError
```

## Topics

### Errors

- [forceCastFailure](foundation/predicateerror/forcecastfailure.md)
- [forceUnwrapFailure](foundation/predicateerror/forceunwrapfailure.md)
- [invalidInput](foundation/predicateerror/invalidinput.md)
- [undefinedVariable](foundation/predicateerror/undefinedvariable.md)

## Relationships

### Conforms To

- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Filltering

- [Predicate](foundation/predicate.md)
- [PredicateCodableConfiguration](foundation/predicatecodableconfiguration.md)
- [PredicateCodableKeyPathProviding](foundation/predicatecodablekeypathproviding.md)
- [PredicateExpression](foundation/predicateexpression.md)
- [StandardPredicateExpression](foundation/standardpredicateexpression.md)
- [PredicateExpressions](foundation/predicateexpressions.md)
- [PredicateBindings](foundation/predicatebindings.md)
- [NSPredicate](foundation/nspredicate.md)
- [NSExpression](foundation/nsexpression.md)
- [NSComparisonPredicate](foundation/nscomparisonpredicate.md)
- [NSCompoundPredicate](foundation/nscompoundpredicate.md)
