-
Notifications
You must be signed in to change notification settings - Fork 34
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
Validation exception stacktrace shortened #198
Validation exception stacktrace shortened #198
Conversation
val validationException = e.cause ?: return e | ||
val wrapperExceptionStackTraceLength = e.stackTrace.size | ||
|
||
if (e is InvocationTargetException) { |
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.
Can it be not an InvocationTargetException
?
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.
Please add a comment explaining when another exception type can be thrown, clarifying why simply returning it is correct. Maybe, we need to throw an internal exception instead.
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.
Done
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.
Please address the comment in Utils.kt
…-validation-functions # Conflicts: # src/jvm/test/org/jetbrains/kotlinx/lincheck_test/ValidateFunctionTest.kt # src/jvm/test/org/jetbrains/kotlinx/lincheck_test/representation/ValidateFunctionTest.kt
Fixes #140