Evaluator: Do not report division by zero (EA-122365)

This commit is contained in:
Yan Zhulanow
2018-06-29 21:20:27 +03:00
parent f16da8c566
commit d6db9e8f6f
2 changed files with 37 additions and 6 deletions
@@ -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) {