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