interceptToolValidationFailed
fun <TFeature : Any> interceptToolValidationFailed(interceptContext: InterceptContext<TFeature>, handle: suspend TFeature.(eventContext: ToolValidationFailedContext) -> Unit)(source)
Intercepts validation errors encountered during the execution of tools associated with the specified feature.
Parameters
handle
A suspendable lambda function that will be invoked when a tool validation error occurs. The lambda provides the tool's stage, tool instance, tool arguments, and the value that caused the validation error.
Example:
pipeline.interceptToolValidationFailed(interceptContext) { eventContext ->
// Handle the tool validation error here
}
Content copied to clipboard