ErrorPage Namespace Reference

Classes

class  Build
 state and parameters shared by several ErrorState::compile*() methods More...
 
class  BuildErrorPrinter
 pretty-prints error page/deny_info building error More...
 

Functions

static std::ostream & operator<< (std::ostream &os, const BuildErrorPrinter &context)
 
static const char * IsDenyInfoUri (const int page_id)
 
static void ImportStaticErrorText (const int page_id, const char *text, const SBuf &inputLocation)
 add error page template to the global index More...
 
static void ValidateStaticError (const int page_id, const SBuf &inputLocation)
 validate static error page More...
 

Function Documentation

◆ ImportStaticErrorText()

static void ErrorPage::ImportStaticErrorText ( const int  page_id,
const char *  text,
const SBuf inputLocation 
)
static

Definition at line 1516 of file errorpage.cc.

References assert, ErrorState::page_id, ValidateStaticError(), and xstrdup.

Referenced by errorInitialize(), and operator<<().

◆ IsDenyInfoUri()

static const char * ErrorPage::IsDenyInfoUri ( const int  page_id)
static
Returns
deny_info URL if the given page is a deny_info page with a URL
nullptr otherwise

Definition at line 239 of file errorpage.cc.

References ERR_MAX.

Referenced by ErrorState::BuildHttpReply(), operator<<(), and ErrorState::validate().

◆ operator<<()

static std::ostream& ErrorPage::operator<< ( std::ostream &  os,
const BuildErrorPrinter context 
)
inlinestatic

◆ ValidateStaticError()

static void ErrorPage::ValidateStaticError ( const int  page_id,
const SBuf inputLocation 
)
static

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors