---
title: MarkupError
framework: PaperKit
role: symbol
role_heading: Enumeration
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, visionOS 26.0+]
path: paperkit/markuperror
---

# MarkupError

The error thrown for encoding / decoding data models.

## Declaration

```swift
enum MarkupError
```

## Topics

### Handling error cases

- [MarkupError.incorrectFormat](paperkit/markuperror/incorrectformat.md)
- [MarkupError.malformedData](paperkit/markuperror/malformeddata.md)
- [MarkupError.incompatibleFormatTooNew](paperkit/markuperror/incompatibleformattoonew.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
