ImageMagick.MagickExceptionHelper.CreateRelatedExceptions C# (CSharp) Method

CreateRelatedExceptions() private static method

private static CreateRelatedExceptions ( IntPtr exception ) : List
exception System.IntPtr
return List
    private static List<MagickException> CreateRelatedExceptions(IntPtr exception)
    {
      List<MagickException> result = new List<MagickException>();

      int nestedCount = NativeMagickExceptionHelper.RelatedCount(exception);
      if (nestedCount == 0)
        return result;

      for (int i = 0; i < nestedCount; i++)
      {
        IntPtr nested = NativeMagickExceptionHelper.Related(exception, i);
        result.Add(CreateException(nested));
      }

      return result;
    }