Contents

CrashDiagnostic

A diagnostic report that describes a crash that occurred.

Declaration

struct CrashDiagnostic

Mentioned in

Discussion

This carries a CallStackTree along with crash-specific metadata including the exception type, exception code, signal, and optional Objective-C exception reason.

Use terminationCategory to correlate this crash with the aggregate termination counts in ForegroundTerminationMetric and BackgroundTerminationMetric:

if let category = diagnostic.terminationCategory {
    switch category {
    case .watchdog:
        flagWatchdogTermination()
    case .badAccess:
        flagBadAccessCrash()
    default:
        break
    }
}

This type replaces MXCrashDiagnostic.

Topics

Call stack

Exception details

Termination counts

Structures

See Also

Crash and hang diagnostics