def __init__(self, processors: Sequence[Type[BaseProcessor]]):
self.processors = processors
for processor_class in self.processors:
if not issubclass(processor_class, BaseProcessor):
message = 'All resources must be sub classed from the "BaseProcessor" sub class.'
raise DandyCriticalException(message)
if processor_class.get_description() is None:
message = (
f'{processor_class.__name__} did not have the class attribute "description". '
f'All "processors" must have a "description" class attribute to be used with a "ProcessorStrategy".'
)
raise DandyCriticalException(message)