-
Couldn't load subscription status.
- Fork 7
Improving validation utils #770
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
Merged
Merged
Changes from 35 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
58ca672
Improving.
staudtMarius 438e3b4
Improving ``ValidationUtils``.
staudtMarius 16dc44c
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 86c91ac
Merge branch 'ms/#707-Refactor-data-sources-to-throw-exceptions-inste…
staudtMarius db202f5
Updating CHANGELOG.
staudtMarius c145bbd
Improving `ValidationUtils`.
staudtMarius 1ae4c04
Merge branch 'ms/#707-Refactor-data-sources-to-throw-exceptions-inste…
staudtMarius b655ebe
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 94f5da1
Adapting tests.
staudtMarius 9e68d90
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 3cd33c9
Adding some new features.
staudtMarius f8667c3
Adding tests.
staudtMarius 5520c48
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 54ecf77
fmt
staudtMarius 9a5c7a6
Improving ``GridContainerValidationUtils``
staudtMarius 3806ab2
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius fe7ea69
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius fb294de
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius e95c356
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 81d87ba
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 6720d02
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius ca16f51
fmt
staudtMarius edb56c7
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 2c3e49f
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius b7e8eb6
Adapting to changes.
staudtMarius 6e596fe
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 6f5ded4
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 210425a
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius cbb75ee
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius b8aead1
Merge branch 'ms/#707-Refactor-data-sources-to-throw-exceptions-inste…
staudtMarius 3dc162b
Adapting to changes.
staudtMarius 1ae94b8
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 2a8e897
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 863b5fe
Adapting ``ValidationUtils`` to the recent changes in ``Try``.
staudtMarius 403e326
Fixing some ``sonarqube`` issues.
staudtMarius d6bab5b
Fixing failing test.
staudtMarius fde8699
Fixing ``sonatype`` isuue.
staudtMarius 8e3365f
Fixing ``codacy`` isuue.
staudtMarius d574534
Fixing ``sonarqube`` isuue.
staudtMarius 32bc1bd
Some improvements.
staudtMarius 0df2058
Merge branch 'dev' into ms/#758-improving-ValidationUtils
staudtMarius 0f7ee8f
Some improvements.
staudtMarius 807ac08
Some improvements.
staudtMarius aeb98fd
Merge remote-tracking branch 'origin/ms/#758-improving-ValidationUtil…
staudtMarius 363927c
Fixing failing test.
staudtMarius 673e9d3
Fixing ``codacy`` issue.
staudtMarius ecd43a9
Suggestion: Optimized structure of Try
sebastian-peter ce7d148
Fixing CsvRawGridSourceTest
sebastian-peter a2e0063
Fixing code smell
sebastian-peter b52d845
Fixing codacy issue
sebastian-peter 06b4066
Minor changes.
staudtMarius 7014bb6
Renaming childInstance() to the more fitting thisInstance()
sebastian-peter fd688fb
Fixing code smell
sebastian-peter 26c9aab
Renaming remaining childInstance() methods
sebastian-peter 0f8a390
Further simplifications
sebastian-peter 7d62119
Adding some @Override notations and abstract method definitions
sebastian-peter ac7564a
Reinstated removed method
sebastian-peter b2df229
Improved formatting of failure messages
sebastian-peter 47d307b
Fixing test
sebastian-peter 0767e27
Fixing ValidationUtilsTest
sebastian-peter e80502b
Fixing TryTest
sebastian-peter a66754e
Codacy issues
sebastian-peter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/edu/ie3/datamodel/exceptions/FailedValidationException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| /* | ||
| * © 2023. TU Dortmund University, | ||
| * Institute of Energy Systems, Energy Efficiency and Energy Economics, | ||
| * Research group Distribution grid planning and operation | ||
| */ | ||
| package edu.ie3.datamodel.exceptions; | ||
|
|
||
| import edu.ie3.datamodel.utils.ExceptionUtils; | ||
| import java.util.List; | ||
|
|
||
| public class FailedValidationException extends ValidationException { | ||
| public FailedValidationException(String message, Throwable throwable) { | ||
| super(message, throwable); | ||
| } | ||
|
|
||
| public FailedValidationException(String message) { | ||
| super(message); | ||
| } | ||
|
|
||
| public FailedValidationException(List<? extends Exception> exceptions) { | ||
| super("Validation failed due to: " + ExceptionUtils.getMessages(exceptions)); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.