<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/GeneratedContent/ParsingError/init(rawContent:underlyingError:debugDescription:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels16GeneratedContentV12ParsingErrorV03rawD0010underlyingF016debugDescriptionAESS_s0F0_pSgSStcfc"
  },
  "title" : "init(rawContent:underlyingError:debugDescription:)"
}
-->

# init(rawContent:underlyingError:debugDescription:)

Creates a parsing failure value.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)