add filter and factory methods for DomainErrors