Don't render pure error types in OverrideMemberChooserObject
#KT-34379 Fixed
This commit is contained in:
@@ -26,3 +26,11 @@ open class KotlinExceptionWithAttachments : RuntimeException, ExceptionWithAttac
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
inline fun checkWithAttachment(value: Boolean, lazyMessage: () -> String, attachments: (KotlinExceptionWithAttachments) -> Unit = {}) {
|
||||
if (!value) {
|
||||
val e = KotlinExceptionWithAttachments(lazyMessage())
|
||||
attachments(e)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user