exception handling

What is the proper way to generate exceptions or errors in my panda 3d modules? I’m guessing there’s a built in exception handler but I haven’t found it yet.

Panda doesn’t implement any special exception handling system. Use the system provided by the language: in Python, use Python exceptions; in C++, use C++ exceptions.

David