Fix incomplete printing of runtime exceptions in box tests

This commit is contained in:
victor.petukhov
2018-12-12 17:28:54 +03:00
parent 1d69f35f27
commit ee0fa2220e
@@ -22,12 +22,15 @@ enum class TestsExceptionFilePostfix(val text: String) {
sealed class TestsError(val postfix: TestsExceptionFilePostfix) : Error() {
abstract val original: Throwable
override fun toString() = original.toString()
override fun getStackTrace() = original.stackTrace
}
class TestsCompilerError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.COMPILER_ERROR)
class TestsInfrastructureError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.INFRASTRUCTURE_ERROR)
class TestsCompiletimeError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.COMPILETIME_ERROR)
class TestsRuntimeError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.RUNTIME_ERROR)
class TestsRuntimeError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.RUNTIME_ERROR) {
override val cause = original.cause
}
private enum class ExceptionType {
ANALYZING_EXPRESSION,