Toggle Menu
Prev Up Next

# `langchain_experimental.comprehend_moderation.base_moderation_exceptions`.ModerationPromptSafetyError

class langchain_experimental.comprehend_moderation.base_moderation_exceptions.ModerationPromptSafetyError(message: str = 'The prompt is unsafe and cannot be processed')

  Exception raised if Unsafe prompts are detected.

  Parameters

    message (str) –

  message -- explanation of the error