---
title: JSONDecoder.NonConformingFloatDecodingStrategy.throw
framework: foundation
role: symbol
role_heading: Case
path: foundation/jsondecoder/nonconformingfloatdecodingstrategy-swift.enum/throw
---

# JSONDecoder.NonConformingFloatDecodingStrategy.throw

The strategy that throws an error upon decoding an exceptional floating-point value.

## Declaration

```swift
case `throw`
```

## See Also

### Exceptional Values

- [JSONDecoder.NonConformingFloatDecodingStrategy.convertFromString(positiveInfinity:negativeInfinity:nan:)](foundation/jsondecoder/nonconformingfloatdecodingstrategy-swift.enum/convertfromstring(positiveinfinity:negativeinfinity:nan:).md)
