<!--
{
  "availability" : [
    "iOS: 14.0.0 - 27.0.0",
    "iPadOS: 14.0.0 - 27.0.0",
    "macCatalyst: 14.0.0 - 27.0.0",
    "macOS: 12.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXDiskWriteExceptionDiagnostic",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXDiskWriteExceptionDiagnostic"
  },
  "title" : "MXDiskWriteExceptionDiagnostic"
}
-->

# MXDiskWriteExceptionDiagnostic

An object representing a diagnostic report for a disk write exception.

```
class MXDiskWriteExceptionDiagnostic
```

## Overview

A disk write exception occurs when the app writes an excessive amount of data to the disk.

## Topics

### Reading total disk writes

[`totalWritesCaused`](/documentation/MetricKit/MXDiskWriteExceptionDiagnostic/totalWritesCaused)

The total amount of data written to disk or other long-term storage during the disk write exception.

### Viewing the call stack

[`callStackTree`](/documentation/MetricKit/MXDiskWriteExceptionDiagnostic/callStackTree)

The call stack for the disk write exception.



---

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)