Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Error.hpp File Reference

Go to the source code of this file.

Compounds

struct  XMillException

Functions

void Error (char *str, int len)
void Error (char *str)
void ErrorCont (char *str, int len)
void ErrorCont (char *str)
void PrintErrorMsg ()
void Exit ()
void ExitNoMem ()
void ExitCorruptFile ()


Function Documentation

void Error char *    str
 

Definition at line 72 of file Error.cpp.

Referenced by ExitCorruptFile(), FindEndOfParamString(), Output::GetDataPtr(), HandleBinOp(), HandleCloseParenc(), HandleUnaryOp(), InterpretOptionString(), ParseOptionFile(), ParseString(), VRegExpr::ParseVRegExpr(), MemStreamer::ReleaseByteBlock(), XMLOutput::endAttribute(), XMLOutput::endElement(), XMLOutput::startAttribute(), and XMLOutput::startElement().

00074 {
00075    Error(str,strlen(str));
00076 }

void Error char *    str,
int    len
 

void ErrorCont char *    str
 

Definition at line 91 of file Error.cpp.

Referenced by FindEndOfParamString(), and ParseString().

00093 {
00094    ErrorCont(str,strlen(str));
00095 }

void ErrorCont char *    str,
int    len
 

void Exit  
 

Definition at line 113 of file Error.cpp.

00114 {
00115 //   PrintErrorMsg();
00116    throw &e;
00117 }

void ExitCorruptFile   [inline]
 

Definition at line 56 of file Error.hpp.

00057 {
00058    Error("Corrupt input file!");
00059    Exit();
00060 }

void ExitNoMem   [inline]
 

Definition at line 49 of file Error.hpp.

Referenced by Output::CreateFile(), SmallBlockUncompressor::Init(), and LabelDict::Init().

00051 {
00052    Error("Insufficient memory!");
00053    Exit();
00054 }

void PrintErrorMsg  
 

Definition at line 97 of file Error.cpp.

00099 {
00100    while(curerrline!=NULL)
00101    {
00102       printf("%s\n",(char *)(curerrline+1));
00103       curerrline=curerrline->next;
00104    }
00105 
00106    curptr=errmsg;
00107    msgptr=errmsg+ERRMSG_MAXLEN-1;
00108 }


Generated on Sat Oct 13 16:08:47 2001 for XMILL by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001