pub fn assert_err_code<R>(err: &StructError<R>, code: &str)where R: DomainReason + ErrorIdentityProvider,