How are errors thrown by external rating engines handled?

External rating engines vary greatly in how they handle error conditions. Some systems return explicit error codes or throw exceptions. Other rating engines provide zero values in error conditions.

To avoid serious data integrity and business logic errors, research how your external rating engine handles error conditions in various cases.

As you parse data from your external rating engine, your code might need to check flags or check for zero premium to detect error conditions. Have conversations about error handling early in your implementation project. If your rating engine detects errors from your external rating engine, log the error and throw an exception from your Gosu code.