Skip to content

TiffErrorHandler

Namespace: ThinkGeo.Core.LibTiff

Default error handler implementation.

public class TiffErrorHandler

Inheritance ObjectTiffErrorHandler

Remarks:

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(TiffErrorHandler) method.

Constructors

TiffErrorHandler()

public TiffErrorHandler()

Methods

ErrorHandler(Tiff, String, String, Object[])

Handles an error by writing it text to the Console.Error.

public void ErrorHandler(Tiff tif, string method, string format, Object[] args)

Parameters

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

args Object[]
An object array that contains zero or more objects to format.

Remarks:

The is a composite format string that uses the same format as method. The 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, Object, String, String, Object[])

Handles an error by writing it text to the Console.Error.

public void ErrorHandlerExt(Tiff tif, object clientData, string method, string format, Object[] args)

Parameters

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

args Object[]
An object array that contains zero or more objects to format.

Remarks:

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

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

WarningHandler(Tiff, String, String, Object[])

Handles a warning by writing it text to the Console.Error.

public void WarningHandler(Tiff tif, string method, string format, Object[] args)

Parameters

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

args Object[]
An object array that contains zero or more objects to format.

Remarks:

The is a composite format string that uses the same format as method. The 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, Object, String, String, Object[])

Handles a warning by writing it text to the Console.Error.

public void WarningHandlerExt(Tiff tif, object clientData, string method, string format, Object[] args)

Parameters

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

args Object[]
An object array that contains zero or more objects to format.

Remarks:

The is a composite format string that uses the same format as method. The parameter, if not null, is printed before the message; it typically is used to identify the method in which a warning is detected.

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