Add quickfix for adding CancellableException to @Throws suspend fun
This commit is contained in:
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// "Add 'CancellationException::class'" "false"
|
||||
// ERROR: @Throws on suspend declaration must have CancellationException (or any of its superclasses) listed
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
|
||||
class MyException : Throwable()
|
||||
|
||||
// Quickfix doesn't support this case:
|
||||
<caret>@Throws(exceptionClasses = [MyException::class])
|
||||
suspend fun addCE() {}
|
||||
Reference in New Issue
Block a user