Revision control
++ // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
++ // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
++ // SPDX-FileCopyrightText: Copyright (c) 2008-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
++ // SPDX-License-Identifier: Apache-2.0
++
++ #ifndef PX_DEFAULT_ERROR_CALLBACK_H
++ #define PX_DEFAULT_ERROR_CALLBACK_H
++
++ #include "foundation/PxErrorCallback.h"
++ #include "PxPhysXConfig.h"
++
++ #if !PX_DOXYGEN
++ namespace physx
++ {
++ #endif
++
++ /**
++ \brief default implementation of the error callback
++
++ This class is provided in order to enable the SDK to be started with the minimum of user code. Typically an application
++ will use its own error callback, and log the error to file or otherwise make it visible. Warnings and error messages from
++ the SDK are usually indicative that changes are required in order for PhysX to function correctly, and should not be ignored.
++ */
++
++ class PxDefaultErrorCallback : public PxErrorCallback
++ {
++ public:
++ PxDefaultErrorCallback();
++ virtual ~PxDefaultErrorCallback();
++
++ virtual void reportError(PxErrorCode::Enum code, const char* message, const char* file, int line) PX_OVERRIDE;
++ };
++
++ #if !PX_DOXYGEN
++ } // namespace physx
++ #endif
++
++ #endif