Mini application server API for C++.

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

base
Class CzzException

   in zz_exception.h
Direct Known Subclasses:
CzzLogException, CzzWinException

class CzzException

Base exception

Author:
Toni Thomsson, toni@tonjac.org

Field Summary
protected CzzString m_CallId
          Id
protected int m_Code
          Error code
protected static CzzErrorHistory* m_ErrorHistory
          Error stack
protected CzzString m_FileName
          Filename
protected int m_LineNumber
          Row number
protected const time_t m_OccuranceTime
          Time of occurance
protected CzzString m_Reason
          Error text
 
Constructor Summary
CzzException( int lineNumber, CzzString fileName, CzzString callId, int code, CzzString reason )
          Create an exception
CzzException( int lineNumber, CzzString fileName, int code, CzzString reason )
          Create an exception
CzzException( const CzzException& exceptionSrc )
          Copy constructor
virtual ~CzzException()
          
 
Method Summary
 CzzString GetCallId( void ) const
          Id
 int GetCode( void ) const
          Error code
 static CzzErrorHistory* GetErrorHistory( void )
          Error stack
 CzzString GetFileName( void ) const
          File name
 int GetLineNumber( void ) const
          Row number
 time_t GetOccuranceTime( void ) const
          Time of occurance
 CzzString GetReason( void ) const
          Error text
protected void StoreInHistory( void )
          Store error on error stack
 

Field Detail

m_CallId

protected CzzString m_CallId;
Id

m_Code

protected int m_Code;
Error code

m_ErrorHistory

protected static CzzErrorHistory* m_ErrorHistory;
Error stack

m_FileName

protected CzzString m_FileName;
Filename

m_LineNumber

protected int m_LineNumber;
Row number

m_OccuranceTime

protected const time_t m_OccuranceTime;
Time of occurance

m_Reason

protected CzzString m_Reason;
Error text


Constructor Detail

CzzException

public CzzException( int lineNumber, CzzString fileName, CzzString callId, int code, CzzString reason );
Create an exception
Parameters:
lineNumber - Line number in sourcecode file, use __LINE__
fileName - Sourcecode file, use __FILE__
callId - Id, can be empty
code - Error code
reason - Error text

CzzException

public CzzException( int lineNumber, CzzString fileName, int code, CzzString reason );
Create an exception
Parameters:
lineNumber - Line number in sourcecode file, use __LINE__
fileName - Sourcecode file, use __FILE__
code - Error code
reason - Error text

CzzException

public CzzException( const CzzException& exceptionSrc );
Copy constructor

~CzzException

public virtual ~CzzException();


Method Detail

GetCallId

public CzzString GetCallId( void ) const;
Id

GetCode

public int GetCode( void ) const;
Error code

GetErrorHistory

public static CzzErrorHistory* GetErrorHistory( void );
Error stack

GetFileName

public CzzString GetFileName( void ) const;
File name

GetLineNumber

public int GetLineNumber( void ) const;
Row number

GetOccuranceTime

public time_t GetOccuranceTime( void ) const;
Time of occurance

GetReason

public CzzString GetReason( void ) const;
Error text

StoreInHistory

protected void StoreInHistory( void );
Store error on error stack

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD