Adds application-defined errors.