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

com.justai.jaicf.hook.BotHookException.kt Maven / Gradle / Ivy

package com.justai.jaicf.hook

import java.lang.Exception

/**
 * This exception should be used when you're willing to interrupt the request processing.
 * Just throw this exception form the body of corresponding [BotHook] listener.
 *
 * Usage example:
 *
 * ```
 * object HelloWorldScenario: Scenario() {
 *   init {
 *     handle {
 *       throw BotHookException("I'm on vacation and won't process any request!")
 *     }
 *   }
 * }
 * ```
 */
class BotHookException(message: String? = null): Exception(message)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy