langchain_experimental.comprehend_moderation.base_moderation_exceptions.ModerationPiiError

class langchain_experimental.comprehend_moderation.base_moderation_exceptions.ModerationPiiError(message: str = 'The prompt contains PII entities and cannot be processed')[source]

Exception raised if PII entities are detected.

Parameters

message (str) –

message -- explanation of the error

Examples using ModerationPiiError