-
Notifications
You must be signed in to change notification settings - Fork 54
@W-11404189@ Adding error message for unreachable code #747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| * Contains error message constants that will be displayed to users. TODO: move all other | ||
| * user-facing messages here. | ||
| */ | ||
| public final class UserFacingErrorMessages { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a simple constants file at the moment, but as we move more messages to here, would be easier to switch to a different mechanism.
| @SuppressWarnings("PMD.AbstractClassWithoutAbstractMethod") | ||
| abstract class AbstractApexVertexBuilder { | ||
| private static final Logger LOGGER = LogManager.getLogger(AbstractApexVertexBuilder.class); | ||
| protected static final Set<String> ROOT_VERTICES = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this to GremlinUtil to avoid two-way reference between both the classes.
| } | ||
| } | ||
|
|
||
| public static String getFileName(GraphTraversalSource g, Vertex vertex) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New method to get filename from a vertex.
|
|
||
| private void addEdge(String name, Vertex from, Vertex to) { | ||
| if (NodeType.TERMINAL_VERTEX_LABELS.contains(from.label())) { | ||
| throw new UnexpectedException("Vertex is terminal. vertex=" + vertexToString(from)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing the cryptic message.
No description provided.