CustomError constructor
      
      CustomError({ 
    
    
- List<CustomErrorRule> ? rules,
- List<String> ? types,
Implementation
CustomError({
  this.rules,
  this.types,
});