Skip to content

Conversation

@rmohan20
Copy link
Contributor

No description provided.

* Contains error message constants that will be displayed to users. TODO: move all other
* user-facing messages here.
*/
public final class UserFacingErrorMessages {
Copy link
Contributor Author

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 =
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replacing the cryptic message.

@rmohan20 rmohan20 merged commit 73dd811 into dev-3 Jul 13, 2022
@rmohan20 rmohan20 linked an issue Aug 17, 2022 that may be closed by this pull request
@stephen-carter-at-sf stephen-carter-at-sf deleted the rm/errorOnUnReachable branch May 17, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] UnexpectedException on v3 DFA on large ISV codebase

3 participants