JWM Source Documentation
Functions
error.h File Reference

Header for the error functions. More...

Go to the source code of this file.

Functions

void FatalError (const char *str,...)
 Display and error message and terminate the program.
 
void Warning (const char *str,...)
 Display a warning message.
 
void WarningVA (const char *part, const char *str, va_list ap)
 Display a warning message.
 
int ErrorHandler (Display *d, XErrorEvent *e)
 Handle an XError event.
 

Detailed Description

Header for the error functions.

Author
Joe Wingbermuehle
Date
2004-2006

Definition in file error.h.

Function Documentation

int ErrorHandler ( Display *  d,
XErrorEvent *  e 
)

Handle an XError event.

Parameters
dThe display on which the event occurred.
eThe error event.
Returns
0

Handle an XError event.

Note that if debug output is directed to an X terminal, emitting too much output can cause a dead lock (this happens on HP-UX). Therefore ShowCheckpoint isn't used by default.

Definition at line 65 of file error.c.

References _, Debug(), display, FatalError(), initializing, and ShowCheckpoint.

Referenced by StartupConnection().

void FatalError ( const char *  str,
  ... 
)

Display and error message and terminate the program.

Parameters
strThe format of the message to display.

Definition at line 15 of file error.c.

References _, and Assert.

Referenced by ErrorHandler(), ReadFile(), ReadValue(), and StartupFonts().

void Warning ( const char *  str,
  ... 
)
void WarningVA ( const char *  part,
const char *  str,
va_list  ap 
)

Display a warning message.

Parameters
partA section identifier for the message.
strThe format string of the message to display.
apThe argument list.

Definition at line 47 of file error.c.

References _, and Assert.

Referenced by ParseError(), and Warning().

joewing.net / Projects / JWM