---
title: "MTOfflineError.ContentMismatch | Mobile sdk | Mobile sdk android | Android"
description: "ContentMismatch"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTOfflineError.ContentMismatch

data class [ContentMismatch](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/)(val expected: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), val actual: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)) : [MTOfflineError](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/)

The received content format or type does not match the expected format.

Members

## Constructors

[ContentMismatch](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/-content-mismatch/)

constructor(expected: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), actual: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))

## Properties

[actual](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/actual/)

val [actual](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/actual/): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)

[cause](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-invalid-pack/#-654012527%2FProperties%2F1466267346)

open val [cause](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-invalid-pack/#-654012527%2FProperties%2F1466267346): [Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)?

[expected](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/expected/)

val [expected](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/expected/): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)

[message](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/message/)

open override val [message](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-error/-content-mismatch/message/): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)
