PxErrorCallback Class Referenceabstract

User defined interface class. Used by the library to emit debug information. More...

#include <PxErrorCallback.h>

Inheritance diagram for PxErrorCallback:

Public Member Functions

virtual ~PxErrorCallback ()
 
virtual void reportError (PxErrorCode::Enum code, const char *message, const char *file, int line)=0
 Reports an error code. More...
 

Detailed Description

User defined interface class. Used by the library to emit debug information.

Note
The SDK state should not be modified from within any error reporting functions.

Threading: The SDK sequences its calls to the output stream using a mutex, so the class need not be implemented in a thread-safe manner if the SDK is the only client.

Constructor & Destructor Documentation

◆ ~PxErrorCallback()

virtual PxErrorCallback::~PxErrorCallback ( )
inlinevirtual

Member Function Documentation

◆ reportError()

virtual void PxErrorCallback::reportError ( PxErrorCode::Enum  code,
const char *  message,
const char *  file,
int  line 
)
pure virtual

Reports an error code.

Parameters
codeError code, see PxErrorCode
messageMessage to display.
fileFile error occured in.
lineLine number error occured on.

Implemented in PxDefaultErrorCallback.


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