CorruptBitmapException

class CorruptBitmapException(message: String, val file: String, val offset: Long = -1, cause: Throwable? = null) : IndexException

A serialized bitmap cannot be read as one this implementation wrote.

The failure names the file and the byte offset within it, because "a bitmap did not decode" is not an actionable report. The engine's rule is that unreadable data becomes a signalled failure naming where it was found, and a bitmap block sits at an offset inside a larger file, so the offset is the only thing that locates it.

Constructors

Link copied to clipboard
constructor(message: String, file: String, offset: Long = -1, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

name of the file the bitmap was read from.

Link copied to clipboard
open val message: String?
Link copied to clipboard

byte offset within that file, or -1 if no single byte is to blame.