10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!
ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A<?
Pub EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip 10139N/A laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen gt lt>
10139N/A<
refmeta><
refentrytitle>TIFFError</
refentrytitle><
manvolnum>3tiff</
manvolnum>
10139N/A<
refmiscinfo class="date">01 Apr 2004</
refmiscinfo>
10139N/A<
refmiscinfo class="sectdesc">&man3;</
refmiscinfo>
10139N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
10139N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
10139N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
10139N/A<
indexterm><
primary>TIFFError</
primary></
indexterm><
indexterm><
primary>TIFFSetErrorHandler
10139N/A</
primary></
indexterm><
indexterm><
primary>library error handling interface
10139N/A<
refnamediv id="TIFFError-3tiff-name"><
refname>TIFFError</
refname><
refname>TIFFSetErrorHandler
10139N/A</
refname><
refpurpose>library error handling interface</
refpurpose></
refnamediv>
10139N/A<
refsect1 id="TIFFError-3tiff-synp"><
title>&synp-tt;</
title>
10139N/Avoid TIFFError(const char* module, const char* fmt, ...)
10139N/Atypedef void (*TIFFErrorHandler)(const char* module, const
10139N/ATIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler
10139N/A<
refsect1 id="TIFFError-3tiff-desc"><
title>&desc-tt;</
title>
10139N/A<
para><
literal>TIFFError</
literal> invokes the library-wide error-handling
10139N/Afunction to (normally) write an error message to <
literal>stderr</
literal>.
10139N/AThe <
literal>fmt</
literal> parameter is a <
literal>printf(3S)</
literal> format
10139N/Astring, and any number of arguments can be supplied. The <
literal>module</
literal>
10139N/Aparameter, if non-zero, is printed before the message. The <
literal>module
10139N/A</
literal> parameter typically is used to identify the software module in
10139N/Awhich an error is detected.</
para>
10139N/A<
para>Applications that want to capture control in the event of an error should
10139N/Ause <
literal>TIFFSetErrorHandler</
literal> to override the default error handler.
10139N/AA NULL (0) error-handling function can be installed to suppress error messages.
10139N/A<
refsect1 id="TIFFError-3tiff-rtrn"><
title>&rtrn-tt;</
title>
10139N/A<
para><
literal>TIFFSetErrorHandler</
literal> returns a reference to the previous
10139N/A<
refsect1 id="TIFFError-3tiff-attr"><
title>&attr-tt;</
title>
10139N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
10139N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
10139N/Afor descriptions of the following attributes:</
para>
10139N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
10139N/A<
colspec colname="COLSPEC1" colwidth="1*">
10139N/A<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center" 10139N/Avalign="middle">ATTRIBUTE VALUE</
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry 13623N/Acolname="COLSPEC1"><
para>Uncommitted</
para></
entry></
row>
10139N/A<
refsect1 id="TIFFError-3tiff-also"><
title>&also-tt;</
title>
10139N/A<!--Reference to another man page--> 10139N/A<!--Reference to a Help manual--> 10139N/A<
para><
citerefentry><
refentrytitle>libtiff</
refentrytitle><
manvolnum>3</
manvolnum>
10139N/A</
citerefentry>, <
citerefentry><
refentrytitle>TIFFWarning</
refentrytitle>
10139N/A<
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry><
refentrytitle>printf
10139N/A</
refentrytitle><
manvolnum>3</
manvolnum></
citerefentry></
para>
10139N/A<
refsect1 id="TIFFError-3tiff-note"><
title>¬e-tt;</
title>
10139N/A<
para>This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004.</
para>