Error Page Internals
Collaboration diagram for Error Page Internals:

Classes

struct  ErrorDynamicPageInfo
 
class  ErrorPageFile
 

Macros

#define CVT_BUF_SZ   512
 

Functions

err_typeoperator++ (err_type &anErr)
 
int operator- (err_type const &anErr, err_type const &anErr2)
 
static const char * errorFindHardText (err_type type)
 
static ErrorDynamicPageInfoerrorDynamicPageInfoCreate (int id, const char *page_name)
 
static void errorDynamicPageInfoDestroy (ErrorDynamicPageInfo *info)
 
static int errorPageId (const char *page_name)
 
const char * errorPageName (int pageId)
 error ID to string More...
 

Variables

struct {
   int   type
 
   const char *   text
 
error_hard_text []
 
static std::vector
< ErrorDynamicPageInfo * > 
ErrorDynamicPages
 
static const int error_hard_text_count = sizeof(error_hard_text) / sizeof(*error_hard_text)
 
static char ** error_text = NULL
 
static int error_page_count = 0
 
static MemBuf error_stylesheet
 
static cbdata_type ErrorState::CBDATA_ErrorState = CBDATA_UNKNOWN
 

Detailed Description

Abstract:

These routines are used to generate error messages to be sent to clients. The error type is used to select between the various message formats. (formats are stored in the Config.errorDirectory)

Macro Definition Documentation

#define CVT_BUF_SZ   512

Definition at line 737 of file errorpage.cc.

Function Documentation

static ErrorDynamicPageInfo * errorDynamicPageInfoCreate ( int  id,
const char *  page_name 
)
static
static void errorDynamicPageInfoDestroy ( ErrorDynamicPageInfo info)
static

Definition at line 500 of file errorpage.cc.

References assert, ErrorDynamicPageInfo::page_name, and safe_free.

Referenced by errorClean().

static const char * errorFindHardText ( err_type  type)
static

Definition at line 241 of file errorpage.cc.

References error_hard_text, error_hard_text_count, i, and NULL.

Referenced by errorInitialize().

static int errorPageId ( const char *  page_name)
static

Definition at line 509 of file errorpage.cc.

References ERR_MAX, ERR_NONE, err_type_str, and i.

Referenced by errorReservePageId().

err_type& operator++ ( err_type anErr)

Definition at line 144 of file errorpage.cc.

References int.

int operator- ( err_type const &  anErr,
err_type const &  anErr2 
)

Definition at line 152 of file errorpage.cc.

References int.

Variable Documentation

cbdata_type ErrorState::CBDATA_ErrorState = CBDATA_UNKNOWN
staticprivate

Definition at line 80 of file errorpage.h.

const { ... } error_hard_text[]
Initial value:
= {
{
"\n<br>\n"
"<hr>\n"
"<div id=\"footer\">\n"
"Generated %T by %h (%s)\n"
"</div>\n"
"</body></html>\n"
},
{
"reset"
}
}
Note
hard coded error messages are not appended with S automagically to give you more control on the format

Referenced by errorFindHardText().

const int error_hard_text_count = sizeof(error_hard_text) / sizeof(*error_hard_text)
static

Definition at line 106 of file errorpage.cc.

Referenced by errorFindHardText().

int error_page_count = 0
static

Definition at line 112 of file errorpage.cc.

Referenced by errorClean(), and errorInitialize().

MemBuf error_stylesheet
static

Definition at line 115 of file errorpage.cc.

char** error_text = NULL
static

Definition at line 109 of file errorpage.cc.

std::vector<ErrorDynamicPageInfo *> ErrorDynamicPages
static

Definition at line 101 of file errorpage.cc.

const { ... } text

Definition at line 80 of file errorpage.cc.

int { ... } type

Definition at line 79 of file errorpage.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors