Skip to content

EmptyTextError() Source

Bases: NumdaplotError

Raised when a rule receives an empty text to search for, which every text would contain.

Added in version 0.1.0

Examples:

import numdaplot as ndp

try:
    ndp.Contains("")
except ndp.EmptyTextError as error:
    print(error)
# Expected a non-empty text to search for.