error.c File Reference

#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <isc/error.h>
#include <isc/msgs.h>

Go to the source code of this file.

Functions

static void default_unexpected_callback (static voiddefault_fatal_callback(const char const char *, static voiddefault_fatal_callback(const char int, static voiddefault_fatal_callback(const char const char *, va_list)
 Default unexpected callback.
void isc_error_setfatal (isc_errorcallback_t cb)
 set fatal error
void isc_error_unexpected (const char *file, int line, const char *format,...)
void isc_error_fatal (const char *file, int line, const char *format,...)
void isc_error_runtimecheck (const char *file, int line, const char *expression)
 runtimecheck error
static void default_unexpected_callback (const char *file, int line, const char *format, va_list args)
static void default_fatal_callback (const char *file, int line, const char *format, va_list args)


Detailed Description

Definition in file error.c.


Function Documentation

static void default_unexpected_callback ( static voiddefault_fatal_callback(const char  const char *,
static voiddefault_fatal_callback(const char  int,
static voiddefault_fatal_callback(const char  const char *,
va_list   
) [static]

Default unexpected callback.

Definition at line 32 of file error.c.

void isc_error_setfatal ( isc_errorcallback_t  cb  ) 

set fatal error

Definition at line 53 of file error.c.

References default_fatal_callback().

Referenced by library_fatal_error(), and main().

void isc_error_unexpected ( const char *  file,
int  line,
const char *  format,
  ... 
)

Definition at line 61 of file error.c.

void isc_error_fatal ( const char *  file,
int  line,
const char *  format,
  ... 
)

Definition at line 70 of file error.c.

Referenced by isc_error_runtimecheck(), and pk11_error_fatalcheck().

void isc_error_runtimecheck ( const char *  file,
int  line,
const char *  expression 
)

runtimecheck error

Definition at line 80 of file error.c.

References isc_error_fatal(), ISC_MSG_FAILED, isc_msgcat_get(), and ISC_MSGSET_GENERAL.

static void default_unexpected_callback ( const char *  file,
int  line,
const char *  format,
va_list  args 
) [static]

Definition at line 87 of file error.c.

static void default_fatal_callback ( const char *  file,
int  line,
const char *  format,
va_list  args 
) [static]

Definition at line 97 of file error.c.

References ISC_MSG_FATALERROR, isc_msgcat_get(), and ISC_MSGSET_GENERAL.

Referenced by isc_error_setfatal().


Generated on Tue Apr 28 17:41:14 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha