One more deprecation for IOResult(n, ex) (#27314)

This commit is contained in:
Johan Andrén 2019-07-10 14:20:12 +02:00 committed by GitHub
parent 041db6f549
commit 83d0f8bb05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,7 @@ object IOResult {
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 */
@deprecated("use IOOperationIncompleteException", "2.6.0")
def createFailed(count: Long, ex: Throwable): IOResult =
new IOResult(count, Failure(ex))
}