From 983c43c736afc6b59adb23fb9891ed24a17a6713 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Tue, 28 Jan 2020 11:33:32 +0300 Subject: [PATCH] Inherit KonanCompilationException from KotlinExceptionWithAttachments to prevent it from wrapping by phaser (see https://github.com/JetBrains/kotlin/commit/2552540f7165571dd2fdefdef4f09d858e4fa92a) --- .../src/org/jetbrains/kotlin/backend/konan/Exceptions.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Exceptions.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Exceptions.kt index a77fbb7f750..be0feda4785 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Exceptions.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Exceptions.kt @@ -6,11 +6,15 @@ package org.jetbrains.kotlin.backend.konan import org.jetbrains.kotlin.konan.KonanException +import org.jetbrains.kotlin.utils.KotlinExceptionWithAttachments /** * Represents a compilation error caused by mistakes in an input file, e.g. undefined reference. */ -class KonanCompilationException(message: String = "", cause: Throwable? = null) : KonanException(message, cause) +class KonanCompilationException( + message: String = "", + cause: Throwable? = null +) : KotlinExceptionWithAttachments(message, cause) /** * Internal compiler error: could not deserialize IR for inline function body.