Evaluator: Do not report division by zero (EA-122365)
This commit is contained in:
+5
-2
@@ -162,13 +162,16 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour
|
||||
result
|
||||
}
|
||||
}
|
||||
catch(e: EvaluateException) {
|
||||
catch (e: EvaluateException) {
|
||||
throw e
|
||||
}
|
||||
catch(e: ProcessCanceledException) {
|
||||
catch (e: ProcessCanceledException) {
|
||||
LOG.debug(e)
|
||||
exception(e)
|
||||
}
|
||||
catch (e: Eval4JInterpreterException) {
|
||||
exception(e.cause)
|
||||
}
|
||||
catch (e: Exception) {
|
||||
val isSpecialException = isSpecialException(e)
|
||||
if (isSpecialException) {
|
||||
|
||||
Reference in New Issue
Block a user