gitkerrors.c File Reference

libgitk error management More...

#include "gitkincludes.h"

Include dependency graph for gitkerrors.c:

Include dependency graph

Go to the source code of this file.

Functions

GitkErrorCode gitk_get_error_code (void)
 get the last error code

gchar * gitk_get_error_str (void)
 get the last error message

void gitk_libxmlxslt_error_func (void *const ctx, const char *const msg,...)
 generic error handler to intercept libxml messages

void gitk_log_handler (const gchar *const log_domain, const GLogLevelFlags log_level, const gchar *const message, gpointer const user_data)
 log handler for gitk. Use g_log_set_handler(G_LOG_DOMAIN,G_LOG_LEVEL_DEBUG|G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_WARNING|G_LOG_LEVEL_ERROR, gitk_log_handler, NULL);

void gitk_print_handler (const gchar *const message)
 print handler for gitk, use g_set_printerr_handler(gitk_print_handler);

void gitk_set_error (const GitkErrorCode code, const gchar *const str)
 set gitk-error code and string


Variables

GitkErrorCode gitk_error_code = 0
 last error code

gchar * gitk_error_str = ""
 last error message


Detailed Description

libgitk error management

Id
gitkerrors.c,v 1.19 2004/08/24 17:23:06 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Thu Nov 22 11:21:23 2001

Definition in file gitkerrors.c.


Function Documentation

void gitk_libxmlxslt_error_func void *const  ctx,
const char *const  msg,
... 
 

generic error handler to intercept libxml messages

Definition at line 105 of file gitkerrors.c.

References gitk_log.

Referenced by gitk_init_xml(), and gitk_init_xsl().

void gitk_set_error const GitkErrorCode  code,
const gchar *const  str
 

set gitk-error code and string

Definition at line 42 of file gitkerrors.c.

References gitk_error_code, gitk_error_str, gitk_log2, and GitkErrorCode.

Referenced by gitk_dialog_new_from_parser_context(), and gitk_dialog_validate().


Variable Documentation

GitkErrorCode gitk_error_code = 0
 

last error code

Definition at line 29 of file gitkerrors.c.

Referenced by gitk_get_error_code(), and gitk_set_error().

gchar* gitk_error_str = ""
 

last error message

Definition at line 34 of file gitkerrors.c.

Referenced by gitk_get_error_str(), and gitk_set_error().


Generated on Thu Oct 28 10:59:30 2004 for gitk by doxygen 1.3.6