---
title: "init(rawContent:underlyingError:debugDescription:)"
framework: foundationmodels
role: symbol
role_heading: Initializer
path: "foundationmodels/generatedcontent/parsingerror/init(rawcontent:underlyingerror:debugdescription:)"
---

# init(rawContent:underlyingError:debugDescription:)

Creates a parsing failure value.

## Declaration

```swift
init(rawContent: String, underlyingError: (any Error)? = nil, debugDescription: String)
```

## Parameters

- `rawContent`: The raw content that could not be parsed.
- `underlyingError`: The underlying error that caused the parsing failure, if any.
- `debugDescription`: A debug description of what failed to parse.
