next up previous contents
Next: Argument Checking without CMOD Up: Writing a C Module Previous: With CMOD   Contents

Error Handling

One important thing the programmer that implements a module has to take care of is error handling. As we said earlier the module implementor's main task is to make the pieces fit each other. In order for that to work the input (and output) parameters must be valid. Since Pike does not provide adequate type checking, each module has to do that itself. The absolute minimum of error handling is to check the arguments in the implementation of each method.



Subsections

2003-03-04