Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@jkodumal
Copy link
Contributor

I'll walk through the changes in comments below.

/**
* An error indicating an abnormal result from evaluating a feature
*/
public class EvaluationError extends Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new exception to help us distinguish precondition / well-formedness failures during evaluation from null evaluation results, which should result in the offVariation being served.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be public- we don't throw it from any public method.
Changing the name to EvaluationException is more consistent with Java naming conventions, unless we ARE going to throw this from a public method (probly not a good idea), then we should name it LDEvaluationException or similar.

prereqOk = false;
}
} catch (EvaluationError err) {
prereqOk = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should log the exception here- at debug or warn.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@jkodumal
Copy link
Contributor Author

@drichelson think I've covered all the PR feedback. Can you circle back when you have a chance?

/**
* An error indicating an abnormal result from evaluating a feature
*/
class EvaluationError extends Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My original comment was 2 parts, the 2nd part was not addressed/discussed:
Changing the name to EvaluationException is more consistent with Java naming conventions.

@jkodumal
Copy link
Contributor Author

Should be all set now.

@drichelson
Copy link
Contributor

👍

@jkodumal jkodumal merged commit 3917f48 into v2 Jun 30, 2016
@jkodumal jkodumal deleted the jko/v2-changes branch June 30, 2016 20:13
eli-darkly added a commit that referenced this pull request Mar 26, 2018
treat unsupported operators as a non-match, don't throw NPE
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants