---
title: "DecodingError.valueNotFound(_:_:)"
framework: swift
role: symbol
role_heading: Case
path: "swift/decodingerror/valuenotfound(_:_:)"
---

# DecodingError.valueNotFound(_:_:)

An indication that a non-optional value of the given type was expected, but a null value was found.

## Declaration

```swift
case valueNotFound(any Any.Type, DecodingError.Context)
```

## Discussion

Discussion As associated values, this case contains the attempted type and context for debugging.
