Class GribFormatException
Thrown when a file isn't valid GRIB2: a message is truncated, a section length doesn't fit, or a required section is missing. The message names what's wrong and, where it helps, the byte offset.
public class GribFormatException : FormatException, ISerializable
- Inheritance
-
GribFormatException
- Implements
- Inherited Members
Remarks
A file that is valid but uses something this decoder doesn't support, such as GRIB edition 1 or CCSDS packing, throws UnsupportedGribException instead.
Constructors
GribFormatException(string)
Creates the exception with a message.
public GribFormatException(string message)
Parameters
messagestringWhat's wrong with the file.
GribFormatException(string, Exception)
Creates the exception with a message and an inner exception.
public GribFormatException(string message, Exception innerException)