Commit 1890e292 authored by Alexander Koshevoy's avatar Alexander Koshevoy
Browse files

PY-28370 KDoc for `PyAddSdkView.finish()` improved

parent 4422b786
Showing with 3 additions and 3 deletions
+3 -3
......@@ -48,8 +48,7 @@ abstract class PyAddSdkPanel : JPanel(), PyAddSdkView {
override fun next() = throw UnsupportedOperationException()
// TODO could we return `null`?
override fun finish(): Sdk = getOrCreateSdk() ?: throw IllegalStateException()
override fun finish(): Sdk = getOrCreateSdk() ?: throw IllegalStateException("Failed to create Python interpreter")
override abstract val panelName: String
override val icon: Icon = PythonIcons.Python.Python
......
......@@ -42,7 +42,8 @@ interface PyAddSdkView {
fun next()
/**
* Creates SDK and returns it.
* Creates SDK and returns it. The returned SDK could be later obtained by
* [getOrCreateSdk] method.
*
* If some error occurs an [Exception] is thrown.
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment