Ilya Shaydullin [IceRock]
10/25/2019, 6:55 AM@SinceKotlin("1.1") public actual typealias Exception = java.lang.Exception
throw Exception( message = "TEST" )
> Task :microservice:payment:compileKotlin FAILED
e: /var/www/backend-services/microservice/payment/src/main/kotlin/com/icerockdev/microservice/payment/application/usecase/CardCreateUseCase.kt: (39, 19): None of the following functions can be called with the arguments supplied:
public final fun <init>(): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
public final fun <init>(p0: String!): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
public final fun <init>(p0: String!, p1: Throwable!): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
public final fun <init>(p0: String!, p1: Throwable!, p2: Boolean, p3: Boolean): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
public final fun <init>(p0: Throwable!): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
FAILURE: Build failed with an exception.
If use throw Exception("TEST" )
that build pass correctly.
On the compiler side, everything seems fine, but probably IDE should make a check by itself.Alexey Belkov [JB]
10/29/2019, 12:31 PM