public static void ThrowIfFailed(NvJpegStatus errorCode) { if (errorCode != NvJpegStatus.NVJPEG_STATUS_SUCCESS) { throw new NvJpegException(errorCode); } }
/// <summary> /// Constructs a new nvJPEG exception. /// </summary> /// <param name="errorCode">The nvJPEG runtime error.</param> public NvJpegException(NvJpegStatus errorCode) : base() { Error = errorCode; }