Skip to content
Snippets Groups Projects
Commit d666acf8 authored by Pascal Osterwinter's avatar Pascal Osterwinter
Browse files

Added validateTrueOrElseThrow method.

parent ee9013b5
No related branches found
No related tags found
1 merge request!215Updated the code snippet with key verification (planning#302)
......@@ -145,6 +145,12 @@ Diese kann im Fehlerfall die Fehler sammeln oder direkt eine Exception werfen.
}
private static void validateTrueOrElseThrow(boolean expression, String msg) {
if (!expression) {
throw new RuntimeException(msg);
}
}
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment