<HTML>
<HEAD>
<TITLE>error - ImageMagick Error Methods</TITLE>
<LINK REV="made" HREF="mailto:tkevans@fantasia.es.dupont.com">
</HEAD>

<body bgcolor="#FFFFFF" text="#000000" link="#1F00FF" alink="#FF0000"  vlink="#9900DD">

<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#NAME">NAME</A></LI>
	<LI><A HREF="#SYNOPSIS">SYNOPSIS</A></LI>
	<LI><A HREF="#FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A></LI>
	<UL>

		<LI><A HREF="#MagickError">MagickError</A></LI>
		<LI><A HREF="#MagickWarning">MagickWarning</A></LI>
		<LI><A HREF="#SetErrorHandler">SetErrorHandler</A></LI>
		<LI><A HREF="#SetWarningHandler">SetWarningHandler</A></LI>
	</UL>

</UL>
<!-- INDEX END -->

<HR>
<P>
<H1><A NAME="NAME">NAME</A></H1>
<P>
error - ImageMagick Error Methods

</P>
<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<P>
void  <STRONG>MagickError</STRONG>( const ErrorType error, const char *message, const char
<CODE>*qualifier</CODE> );

</P>
<P>
void  <STRONG>MagickWarning</STRONG>( const WarningType warning, const char *message, const char
<CODE>*qualifier</CODE> );

</P>
<P>
ErrorHandler  <STRONG>SetErrorHandler</STRONG>( ErrorHandler handler );

</P>
<P>
ErrorHandler  <STRONG>SetWarningHandler</STRONG>( ErrorHandler handler );

</P>
<P>
<HR>
<H1><A NAME="FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A></H1>
<P>
<HR>
<H2><A NAME="MagickError">MagickError</A></H2>
<P>
Method MagickError calls the error handler methods with an error message.

</P>
<P>
The format of the MagickError method is:

</P>
<blockquote>void MagickError ( const ErrorType error, const char *message, const char *qualifier ); </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

</P>
<DL><DL>
<p><dt><STRONG><A NAME="item_o">error:</A></STRONG><DD>
<P>
Specifies the numeric error category.

</P>
<p><dt><STRONG>message:</STRONG><DD>
<P>
Specifies the message to display before terminating the program.

</P>
<p><dt><STRONG>qualifier:</STRONG><DD>
<P>
Specifies any qualifier to the message.

</P>
</DL></DL>
<P>
<HR>
<H2><A NAME="MagickWarning">MagickWarning</A></H2>
<P>
Method MagickWarning calls the warning handler methods with a warning
message.

</P>
<P>
The format of the MagickWarning method is:

</P>
<blockquote>void MagickWarning ( const WarningType warning, const char *message, const char *qualifier ); </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

</P>
<DL><DL>
<p><dt><STRONG>warning:</STRONG><DD>
<P>
Specifies the numeric warning category.

</P>
<p><dt><STRONG>message:</STRONG><DD>
<P>
Specifies the message to display before terminating the program.

</P>
<p><dt><STRONG>qualifier:</STRONG><DD>
<P>
Specifies any qualifier to the message.

</P>
</DL></DL>
<P>
<HR>
<H2><A NAME="SetErrorHandler">SetErrorHandler</A></H2>
<P>
Method SetErrorHandler sets the error handler to the specified method and
returns the previous error handler.

</P>
<P>
The format of the SetErrorHandler method is:

</P>
<blockquote>ErrorHandler SetErrorHandler ( ErrorHandler handler ); </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

</P>
<DL><DL>
<p><dt><STRONG>handler:</STRONG><DD>
<P>
Specifies a pointer to a method to handle errors.

</P>
</DL></DL>
<P>
<HR>
<H2><A NAME="SetWarningHandler">SetWarningHandler</A></H2>
<P>
Method SetWarningHandler sets the warning handler to the specified method
and returns the previous warning handler.

</P>
<P>
The format of the SetWarningHandler method is:

</P>
<blockquote>ErrorHandler SetWarningHandler ( ErrorHandler handler ); </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

</P>
<DL><DL>
<p><dt><STRONG>handler:</STRONG><DD>
<P>
Specifies a pointer to a method to handle warnings.

</P>
</DL></DL>

</BODY>

</HTML>
