Use the includeSubclasses parameter of the endClassesNotification method to specify whether subclasses are to be included in (when set to true) or excluded from (when set to false) the termination of the notification subscription.
The endClassesNotification method raises an exception if a dynamic subclass has been deleted after the call to the beginClassesNotification method when the includeSubclasses parameter is set to true.