[BT] Introduce KotlinBuildToolsException

#KT-57398 In Progress
This commit is contained in:
Alexander.Likhachev
2023-06-27 20:11:26 +02:00
committed by Space Team
parent b3fbe4c484
commit 6356a40fe8
3 changed files with 34 additions and 0 deletions
@@ -20,6 +20,10 @@ public final class org/jetbrains/kotlin/buildtools/api/CompilationService$Compan
public final fun loadImplementation (Ljava/lang/ClassLoader;)Lorg/jetbrains/kotlin/buildtools/api/CompilationService;
}
public final class org/jetbrains/kotlin/buildtools/api/CompilerArgumentsParseException : org/jetbrains/kotlin/buildtools/api/KotlinBuildToolsException {
public fun <init> (Ljava/lang/String;)V
}
public abstract interface class org/jetbrains/kotlin/buildtools/api/CompilerExecutionStrategyConfiguration {
public abstract fun useDaemonStrategy (Ljava/io/File;Ljava/util/List;)Lorg/jetbrains/kotlin/buildtools/api/CompilerExecutionStrategyConfiguration;
public abstract fun useInProcessStrategy ()Lorg/jetbrains/kotlin/buildtools/api/CompilerExecutionStrategyConfiguration;
@@ -28,6 +32,10 @@ public abstract interface class org/jetbrains/kotlin/buildtools/api/CompilerExec
public abstract interface annotation class org/jetbrains/kotlin/buildtools/api/ExperimentalBuildToolsApi : java/lang/annotation/Annotation {
}
public abstract class org/jetbrains/kotlin/buildtools/api/KotlinBuildToolsException : java/lang/Exception {
public synthetic fun <init> (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
}
public abstract interface class org/jetbrains/kotlin/buildtools/api/KotlinLogger {
public abstract fun debug (Ljava/lang/String;)V
public abstract fun error (Ljava/lang/String;Ljava/lang/Throwable;)V
@@ -0,0 +1,13 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.buildtools.api
/**
* Represents an error during parsing Kotlin compiler arguments.
*
* @param message A description of the exception.
*/
public class CompilerArgumentsParseException(message: String) : KotlinBuildToolsException(message)
@@ -0,0 +1,13 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.buildtools.api
/**
* A sealed class that represents exceptions that may occur during the execution of a Kotlin build tool.
*
* @property message A [String] that contains a description of the exception that occurred.
*/
public sealed class KotlinBuildToolsException(message: String) : Exception(message)