All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.harmony.kotlin.error.DataNotAvailableException.kt Maven / Gradle / Ivy

package com.harmony.kotlin.error

/**
 * Data is not available (for any reason)
 */
sealed class DataNotAvailableException(message: String? = null, cause: Throwable? = null) : HarmonyException(message, cause)

/**
 * Data is not found.
 */
class DataNotFoundException(message: String? = null, cause: Throwable? = null) : DataNotAvailableException(message, cause)

/**
 * Data is found but it is not valid (e.g: Cache is expired)
 */
class DataNotValidException(message: String? = null, cause: Throwable? = null) : DataNotAvailableException(message, cause)

/**
 * Data serialization/deserialization failed
 */
class DataSerializationException(message: String? = null, cause: Throwable? = null) : DataNotAvailableException(message, cause)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy