public bool HasError(AcErrorType type)
 {
     return(_errors.Any(error => error.Type == type));
 }