rethrowAsLibraryException

fun <T> rethrowAsLibraryException(part: LibraryProblemPart, action: () -> T): T