Menu
Lumberyard
C++ API Reference (Version 1.10)

AZ::SerializeContext::ErrorHandler Class Reference

Reports errors and warnings as Lumberyard serializes data. More...

Public Member Functions

 ErrorHandler ()
 A constructor. More...
 
void ReportError (const char *message)
 Reports an error. More...
 
void ReportWarning (const char *message)
 Reports a nonfatal warning. More...
 
void Push (const DbgStackEntry &de)
 Pushes an entry onto the debug stack. More...
 
void Pop ()
 Pops the last entry from the debug stack. More...
 
unsigned int GetErrorCount () const
 Gets the current number of errors. More...
 
unsigned int GetWarningCount () const
 Gets the current number of warnings. More...
 
void Reset ()
 Sets the error count to zero. More...
 

Detailed Description

Reports errors and warnings as Lumberyard serializes data.

Constructor & Destructor Documentation

◆ ErrorHandler()

AZ::SerializeContext::ErrorHandler::ErrorHandler ( )
inline

A constructor.

Member Function Documentation

◆ GetErrorCount()

unsigned int AZ::SerializeContext::ErrorHandler::GetErrorCount ( ) const
inline

Gets the current number of errors.

To reset the error count, use Reset().

Returns
The current number of errors.

◆ GetWarningCount()

unsigned int AZ::SerializeContext::ErrorHandler::GetWarningCount ( ) const
inline

Gets the current number of warnings.

Returns
The current number of warnings.

◆ Pop()

void AZ::SerializeContext::ErrorHandler::Pop ( )

Pops the last entry from the debug stack.

◆ Push()

void AZ::SerializeContext::ErrorHandler::Push ( const DbgStackEntry de)

Pushes an entry onto the debug stack.

Parameters
deA DbgStackEntry object that contains information about serialized data.

◆ ReportError()

void AZ::SerializeContext::ErrorHandler::ReportError ( const char *  message)

Reports an error.

Parameters
messageA pointer to the error message.

◆ ReportWarning()

void AZ::SerializeContext::ErrorHandler::ReportWarning ( const char *  message)

Reports a nonfatal warning.

Parameters
messageA pointer to the warning message.

◆ Reset()

void AZ::SerializeContext::ErrorHandler::Reset ( )

Sets the error count to zero.


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