/// <summary> Decode exception. </summary>
        /// <param name="wand"> Handle of the wand. </param>
        /// <returns> A string. </returns>
        private static string DecodeException(IWandCore wand)
        {
            int exceptionSeverity;

            IntPtr exceptionPtr = wand.GetException(out exceptionSeverity);
            wand.ClearException();
            return WandNativeString.Load(exceptionPtr);
        }
Exemple #2
0
        /// <summary> Decode exception. </summary>
        /// <param name="wand"> Handle of the wand. </param>
        /// <returns> A string. </returns>
        private static string DecodeException(IWandCore wand)
        {
            int exceptionSeverity;

            IntPtr exceptionPtr = wand.GetException(out exceptionSeverity);

            wand.ClearException();
            return(WandNativeString.Load(exceptionPtr));
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the ImageMagickSharp.WandException class. </summary>
 /// <param name="wand"> Handle of the wand. </param>
 internal WandException(IWandCore wand)
     : base(DecodeException(wand))
 {
 }
 /// <summary>
 /// Initializes a new instance of the ImageMagickSharp.WandException class. </summary>
 /// <param name="wand"> Handle of the wand. </param>
 internal WandException(IWandCore wand)
     : base(DecodeException(wand))
 {
 }