Validating the Call Results

How to test that the API performed its function and/or check for errors. For example, show how to configure a rgndbdump call to retrieve the same data?