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);
}