Skip to content
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

Enhance exception message in case of InvalidGridException #1125

Merged
merged 9 commits into from
Feb 5, 2025
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Introduce ThermalDemandWrapper [#1049](https://github.com/ie3-institute/simona/issues/1049)
- Added Marius Staudt to list of reviewers [#1057](https://github.com/ie3-institute/simona/issues/1057)
- Throw exception if the slack node is not directly conected to a transformer. [#525](https://github.com/ie3-institute/simona/issues/525)
- Enhance exception message in case of InvalidGridException [#1124](https://github.com/ie3-institute/simona/issues/1124)

### Changed
- Adapted to changed data source in PSDM [#435](https://github.com/ie3-institute/simona/issues/435)
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/edu/ie3/simona/model/grid/GridModel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ object GridModel {
noLines && noTransformers2w && noTransformers3w && (noOfNodes > noOfSlackNodes)
)
throw new InvalidGridException(
"The grid contains no basic branch elements (lines or transformers)."
f"The grid with subnet number ${gridModel.subnetNo} contains no basic branch elements (lines or transformers)."
)

// slack
Expand Down
Loading