add a sequence extractor API to DomainErrors