simon.vergauwen
04/26/2019, 8:47 AMTry { serviceURL.createContainerURL(containerName) }.flatMap { containerUrl ->
Try { containerURL.create().blockingGet() }.handleErrorWith {
if (error is RestException && error.response().statusCode() != Conflict.value) Try.raiseError(UnableToCreateStorageContainer())
else Try.just(containerUrl)
}
}