ModerationPromptSafetyError#
- class langchain_experimental.comprehend_moderation.base_moderation_exceptions.ModerationPromptSafetyError(message: str = 'The prompt is unsafe and cannot be processed')[source]#
Exception raised if Unsafe prompts are detected.
- Parameters:
message (str) –
- message -- explanation of the error