I would say a more suitable exception be thrown instead of a "cannot open of type" as the existing exception is a general indicator of "this type is not supported"