CorruptSketchException

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

A sketch sidecar cannot be read as one this implementation wrote.

A .cat file is written whole to a temporary name, forced, and moved into place atomically, so there is no torn-tail reading of one: a file that is there is a file that was complete. Damage here happened after the fact, and — unlike a damaged segment — it costs only the time to rescan.

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 sidecar that failed to read.

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

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