BitMiracle.LibTiff.Classic.TiffErrorHandler.ErrorHandler C# (CSharp) Method

ErrorHandler() public method

Handles an error by writing it text 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.
public ErrorHandler ( 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 virtual void ErrorHandler(Tiff tif, string method, string format, params object[] args)
        {
            TextWriter stderr = Console.Error;
            if (method != null)
                stderr.Write("{0}: ", method);

            stderr.Write(format, args);
            stderr.Write("\n");
        }