-
Notifications
You must be signed in to change notification settings - Fork 43
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
Improve error message for lines between 2 Xnodes #2682
Conversation
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
@@ -457,7 +457,7 @@ private static void createLine(UcteNetworkExt ucteNetwork, Network network, | |||
createDanglingLine(ucteLine, connected, xnode, nodeCode1, ucteVoltageLevel1, network); | |||
|
|||
} else { | |||
throw new UcteException("Line between 2 Xnodes"); | |||
throw new UcteException("Line between 2 Xnodes: '" + nodeCode1 + "' and '" + nodeCode2 + "'"); |
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 detail but in the rest of the code, in error messages we write "X-node". I don't know what way is the good one.
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.
In UCTE import, I can see one "Xnode" and one "XNODE"
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.
What do you prefer? I will commit in your PR just a uniformisation if you don't mind.
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.
I replaced all by X-node
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No
What kind of change does this PR introduce?
Error message improvement
What is the current behavior?
When we have a line between 2 xnodes in a UCTE file, we get an error message but without the information of the 2 xnodes.
What is the new behavior (if this is a feature change)?
We have the name of the 2 xnodes.
Does this PR introduce a breaking change or deprecate an API?
Other information: