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

com.c0x12c.featureflag.exception.Exceptions.kt Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package com.c0x12c.featureflag.exception

/**
 * Base exception class for feature flag related errors.
 *
 * @param message The error message.
 * @param cause The cause of the error (optional).
 */
open class FeatureFlagError(
  message: String,
  cause: Throwable? = null
) : Exception(message, cause)

/**
 * Exception thrown when a requested feature flag is not found.
 *
 * @param message The error message.
 * @param cause The cause of the error (optional).
 */
class FeatureFlagNotFoundError(
  message: String,
  cause: Throwable? = null
) : FeatureFlagError(message, cause)

/**
 * Exception thrown when there is an error in the notification process.
 *
 * @param message The error message.
 * @param cause The cause of the error (optional).
 */
class NotifierError(
  message: String,
  cause: Throwable? = null
) : FeatureFlagError(message, cause)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy