C# Class BitMiracle.LibTiff.Classic.TiffErrorHandler

Default error handler implementation.

TiffErrorHandler provides error and warning handling methods that write an error or a warning messages to the Console.Error.

Applications that desire to capture control in the event of an error or a warning should set their custom error and warning handler using Tiff.SetErrorHandler method.

Datei anzeigen Open project: Core-Techs/TiffLibrary Class Usage Examples

Public Methods

Method Description
ErrorHandler ( Tiff tif, string method, string format ) : void

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.

ErrorHandlerExt ( Tiff tif, object clientData, string method, string format ) : void

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.

The clientData parameter can be anything. Its value and meaning is defined by an application and not the library.

WarningHandler ( Tiff tif, string method, string format ) : void

Handles a warning 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 a warning is detected.

WarningHandlerExt ( Tiff tif, object clientData, string method, string format ) : void

Handles a warning 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 a warning is detected.

The clientData parameter can be anything. Its value and meaning is defined by an application and not the library.

Method Details

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

ErrorHandlerExt() 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.

The clientData parameter can be anything. Its value and meaning is defined by an application and not the library.

public ErrorHandlerExt ( Tiff tif, object clientData, string method, string format ) : void
tif Tiff An instance of the class. Can be null.
clientData object A client data.
method string The method where an error is detected.
format string A composite format string (see Remarks).
return void

WarningHandler() public method

Handles a warning 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 a warning is detected.
public WarningHandler ( Tiff tif, string method, string format ) : void
tif Tiff An instance of the class. Can be null.
method string The method where a warning is detected.
format string A composite format string (see Remarks).
return void

WarningHandlerExt() public method

Handles a warning 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 a warning is detected.

The clientData parameter can be anything. Its value and meaning is defined by an application and not the library.

public WarningHandlerExt ( Tiff tif, object clientData, string method, string format ) : void
tif Tiff An instance of the class. Can be null.
clientData object A client data.
method string The method where a warning is detected.
format string A composite format string (see Remarks).
return void