BitMiracle.LibTiff.Classic.Tiff.Error C# (CSharp) Method

Error() public static method

Invokes the library-wide error handling methods to (normally) write an error message to the Console.Error.

The format is a composite format string that uses the same format as O:System.String.Format method. The method parameter, if not null, is printed before the message; it typically is used to identify the method in which an error is detected.

Applications that desire to capture control in the event of an error should use SetErrorHandler to override the default error and warning handler.

public static Error ( Tiff tif, string method, string format ) : void
tif Tiff An instance of the class. Can be null.
method string The method where an error is detected.
format string A composite format string (see Remarks).
return void
        public static void Error(Tiff tif, string method, string format, params object[] args)
        {
            TiffErrorHandler errorHandler = getErrorHandler(tif);
            if (errorHandler == null)
                return;

            errorHandler.ErrorHandler(tif, method, format, args);
            errorHandler.ErrorHandlerExt(tif, null, method, format, args);
        }

Same methods

Tiff::Error ( string method, string format ) : void
Tiff