Hi all, I have a class with a function that throws...
# multiplatform
j
Hi all, I have a class with a function that throws an exception. I want to annotate with a custom
@Throws
that has to be implemented in native with the native throws and same for jvm. I tried to follow this solution but without luck: https://github.com/JetBrains/kotlin-native/issues/2122#issuecomment-424031011 common:
Copy code
@Target(AnnotationTarget.FUNCTION)
expect annotation class Throws()
jvm:
Copy code
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CONSTRUCTOR)
@Retention(AnnotationRetention.SOURCE)
actual annotation class Throws actual constructor()
native: