Collaboration diagram for Error Page Internals:

Classes

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 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

◆ CVT_BUF_SZ

#define CVT_BUF_SZ   512

Definition at line 872 of file errorpage.cc.

Function Documentation

◆ errorFindHardText()

static const char * errorFindHardText ( err_type  type)
static

Definition at line 334 of file errorpage.cc.

References error_hard_text, error_hard_text_count, i, and NULL.

Referenced by errorInitialize().

◆ errorPageId()

static int errorPageId ( const char *  page_name)
static

Definition at line 624 of file errorpage.cc.

References ERR_MAX, ERR_NONE, err_type_str, and i.

Referenced by errorReservePageId().

◆ errorPageName()

◆ operator++()

err_type& operator++ ( err_type anErr)

Definition at line 223 of file errorpage.cc.

References int.

◆ operator-()

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

Definition at line 231 of file errorpage.cc.

References int.

Variable Documentation

◆ CBDATA_ErrorState

cbdata_type ErrorState::CBDATA_ErrorState = CBDATA_UNKNOWN
staticprivate

Definition at line 91 of file errorpage.h.

◆ error_hard_text

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"
},
{
"secure accept fail"
},
{
"request start timedout"
},
{
"mgr_index"
}
}
Note
hard coded error messages are not appended with S automagically to give you more control on the format

Referenced by errorFindHardText().

◆ error_hard_text_count

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

Definition at line 191 of file errorpage.cc.

Referenced by errorFindHardText().

◆ error_page_count

int error_page_count = 0
static

Definition at line 197 of file errorpage.cc.

Referenced by errorClean(), and errorInitialize().

◆ error_stylesheet

MemBuf error_stylesheet
static

Definition at line 200 of file errorpage.cc.

◆ error_text

char** error_text = NULL
static

Definition at line 194 of file errorpage.cc.

◆ ErrorDynamicPages

std::vector<ErrorDynamicPageInfo *> ErrorDynamicPages
static

Definition at line 186 of file errorpage.cc.

◆ text

const { ... } text

Definition at line 153 of file errorpage.cc.

◆ type

int { ... } type

Definition at line 152 of file errorpage.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors