Updated invalid exception throwing in netcdf dogma