ImageMagick.NativeInstance.CheckException C# (CSharp) Метод

CheckException() защищенный Метод

protected CheckException ( IntPtr exception, IntPtr result ) : void
exception System.IntPtr
result System.IntPtr
Результат void
    protected void CheckException(IntPtr exception, IntPtr result)
    {
      MagickException magickException = MagickExceptionHelper.Create(exception);
      if (MagickExceptionHelper.IsError(magickException))
      {
        if (result != IntPtr.Zero)
          Dispose(result);
        throw magickException;
      }

      RaiseWarning(magickException);
    }