Raise this error inside Python node scripts (for example, on the Python Processor node), to stop processing and make the TOP node signal an error.
For example, in a Python Processor node’s onGenerate
snippet:
import pdg # Get the number of new items to create for each incoming item per_item = self["peritem"].evaluateInt() if per_item > 16: # Too many! raise pdg.CookError( "Can't create more than 16 items per incoming item" ) # Go on to create new items...