Humble Framework for SkyOS


Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

HAssertion Class Reference
[Debugging]

#include <HError.h>

Inheritance diagram for HAssertion:

HObj

Detailed Description

The HAssertion class is derived from std::logic_error and captures the results of a failed ASSERT() macro. Although intended for debugging purposes, it can be thrown in production builds because it is properly caught and handled by the same logic that handles STL exceptions.

Definition at line 73 of file HError.h.

Public Member Functions

 HAssertion (StringPtr pstrWhat, StringPtr pstrFile, uint32 uLine)
void Reset (void)
 Clears the exception.
void Throw (StringPtr pstrWhat, StringPtr pstrFile, uint32 uLine) throw ()
 Sets the exception information then throws it.
const char * what (void) const throw ()
 Returns the error information as a readable string.
HAssertionSet (StringPtr pstrWhat, StringPtr pstrFile, uint32 uLine)
 Sets the exception information.

Protected Attributes

StringPtr m_pstrWhat
 Ptr to text of assertion.
StringPtr m_pstrFile
 Ptr to source file (__FILE__).
uint32 m_uLine
 Line number in source file (__LINE__).


Member Function Documentation

void HAssertion::Throw StringPtr  pstrWhat,
StringPtr  pstrFile,
uint32  uLine
throw ()
 

Parameters:
pstrWhat String describing what happened
pstrFile Source file (__FILE__)
uLine Source line (__LINE__)
See also:
Set();

Definition at line 118 of file HError.h.

const char* HAssertion::what void   )  const throw ()
 

Returns:
String describing the error

Definition at line 126 of file HError.h.

HAssertion& HAssertion::Set StringPtr  pstrWhat,
StringPtr  pstrFile,
uint32  uLine
 

Returns:
this
Parameters:
pstrWhat Ptr to string describing what happened
pstrFile Source file (__FILE__)
uLine Source line (__LINE__)
See also:
Throw();

Definition at line 146 of file HError.h.


The documentation for this class was generated from the following file:
 

2006.01.09-16:37