> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CrossmintCheckoutDiagnostic

> Flutter Class

**Class**

Structured runtime signal emitted by `CrossmintEmbeddedCheckout`.

```dart theme={null}
class CrossmintCheckoutDiagnostic
```

## Constructors

### CrossmintCheckoutDiagnostic

```dart theme={null}
const CrossmintCheckoutDiagnostic({
  required this.code,
  required this.message,
  required this.severity,
  this.event,
  this.uri,
  this.details = const <String, Object?>{},
})
```

Creates a diagnostic record.

## Properties

### code

```dart theme={null}
final String code
```

Short machine-readable identifier (e.g. `"navigation.blocked"`, `"message.parse_failed"`).

### message

```dart theme={null}
final String message
```

Human-readable description of the diagnostic.

### severity

```dart theme={null}
final CrossmintCheckoutDiagnosticSeverity severity
```

Severity classification — one of `CrossmintCheckoutDiagnosticSeverity`: `info` (interesting but not a problem, e.g. user closed the hosted modal), `warning` (likely recoverable — surface in dev / staging), `error` (hosted flow hit a problem that may affect checkout). Pass to logging infrastructure accordingly.

### event

```dart theme={null}
final String? event
```

Hosted-page event associated with this diagnostic, if any (e.g. the original postMessage event name that failed to parse).

### uri

```dart theme={null}
final Uri? uri
```

URL associated with this diagnostic — set for navigation-related diagnostics (blocked navigations, resource errors).

### details

```dart theme={null}
final Map<String, Object?> details
```

Extra structured context for the diagnostic. Keys are stable — safe to forward to logging.
