One Logo Pool Ball
FoundationModels · IOS API REFERENCE

GeneratedContent.ParsingError

struct · iOS 27.0+ · SDK 27.1

struct ParsingError

A failure that occurs when a string cannot be parsed into GeneratedContent.

Members (8)

get · iOS 27.0+

underlyingError

TypeScript
get underlyingError(): (NativeError) | null
Swift declaration
var underlyingError: (any Error)?

The underlying error that caused the parsing failure, if any.

set · iOS 27.0+

underlyingError

TypeScript
set underlyingError(value: (NativeError) | null)
Swift declaration
var underlyingError: (any Error)?

The underlying error that caused the parsing failure, if any.

init · iOS 27.0+

init

TypeScript
static init(rawContent: string, underlyingError: (NativeError) | null, debugDescription: string): GeneratedContent_ParsingError
Swift declaration
init(rawContent: String, underlyingError: (any Error)? = nil, debugDescription: String)

Creates a parsing failure value. - 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.

get · iOS 27.0+

rawContent

TypeScript
get rawContent(): string
Swift declaration
var rawContent: String

The raw content that could not be parsed.

set · iOS 27.0+

rawContent

TypeScript
set rawContent(value: string)
Swift declaration
var rawContent: String

The raw content that could not be parsed.

get · iOS 27.0+

debugDescription

TypeScript
get debugDescription(): string
Swift declaration
var debugDescription: String

A debug description of what failed to parse.

set · iOS 27.0+

debugDescription

TypeScript
set debugDescription(value: string)
Swift declaration
var debugDescription: String

A debug description of what failed to parse.

get · iOS 27.0+

errorDescription

TypeScript
get errorDescription(): (string) | null
Swift declaration
var errorDescription: String? { get }

A localized message describing what error occurred.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →