JWM Source Documentation
Functions
error.c File Reference

Error handling functions. More...

#include "jwm.h"
#include "error.h"
#include "main.h"

Go to the source code of this file.

Functions

void FatalError (const char *str,...)
 Log a fatal error and exit.
 
void Warning (const char *str,...)
 Log a warning.
 
void WarningVA (const char *part, const char *str, va_list ap)
 Log a warning.
 
int ErrorHandler (Display *d, XErrorEvent *e)
 Callback to handle errors from Xlib.
 

Detailed Description

Error handling functions.

Author
Joe Wingbermuehle
Date
2004-2006

Definition in file error.c.

Function Documentation

int ErrorHandler ( Display *  d,
XErrorEvent *  e 
)

Callback to handle errors from Xlib.

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

Log a fatal error and exit.

Display and error message and terminate the program.

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 
)

Log a warning.

Display a warning message.

Definition at line 47 of file error.c.

References _, and Assert.

Referenced by ParseError(), and Warning().

joewing.net / Projects / JWM