From 49d8bd5845cc98eb5a0ab689bb30ac3a197e25e8 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Wed, 19 May 2021 17:09:21 +0300 Subject: [PATCH] Remove unnecessary property `message` from interpreter exceptions --- .../kotlin/ir/interpreter/exceptions/InterpreterError.kt | 4 ++-- .../kotlin/ir/interpreter/exceptions/InterpreterException.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterError.kt b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterError.kt index 5dda318acea..9ff2c2fbbbb 100644 --- a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterError.kt +++ b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterError.kt @@ -5,9 +5,9 @@ package org.jetbrains.kotlin.ir.interpreter.exceptions -open class InterpreterError(override val message: String) : InterpreterException() +open class InterpreterError(message: String) : InterpreterException(message) -class InterpreterMethodNotFoundError(override val message: String) : InterpreterError(message) +class InterpreterMethodNotFoundError(message: String) : InterpreterError(message) class InterpreterTimeOutError : InterpreterError("Exceeded execution limit of constexpr expression") diff --git a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterException.kt b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterException.kt index 563e299e4b8..1d33b358556 100644 --- a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterException.kt +++ b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterException.kt @@ -5,4 +5,4 @@ package org.jetbrains.kotlin.ir.interpreter.exceptions -abstract class InterpreterException : Exception() \ No newline at end of file +abstract class InterpreterException(message: String) : Exception(message) \ No newline at end of file