One more deprecation for IOResult(n, ex) (#27314)
This commit is contained in:
parent
041db6f549
commit
83d0f8bb05
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ object IOResult {
|
||||||
new IOResult(count, Success(Done))
|
new IOResult(count, Success(Done))
|
||||||
|
|
||||||
/** JAVA API: Creates failed IOResult, `count` should be the number of bytes (or other unit, please document in your APIs) processed before failing */
|
/** JAVA API: Creates failed IOResult, `count` should be the number of bytes (or other unit, please document in your APIs) processed before failing */
|
||||||
|
@deprecated("use IOOperationIncompleteException", "2.6.0")
|
||||||
def createFailed(count: Long, ex: Throwable): IOResult =
|
def createFailed(count: Long, ex: Throwable): IOResult =
|
||||||
new IOResult(count, Failure(ex))
|
new IOResult(count, Failure(ex))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue