提交 feb86a16 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 d351d35a
......@@ -72,12 +72,12 @@ public class DataUtils {
* available.
*/
public static final int ERROR_CHUNK_NOT_FOUND = 9;
/**
* The block in the stream store was not found.
*/
public static final int ERROR_BLOCK_NOT_FOUND = 50;
/**
* The transaction store is corrupt.
*/
......@@ -788,7 +788,7 @@ public class DataUtils {
/**
* Format an error message.
*
*
* @param errorCode the error code
* @param message the message
* @param arguments the arguments
......
......@@ -347,7 +347,7 @@ public class StreamStore {
byte[] data = map.get(key);
if (data == null) {
throw DataUtils.newIllegalStateException(
DataUtils.ERROR_BLOCK_NOT_FOUND,
DataUtils.ERROR_BLOCK_NOT_FOUND,
"Block {0} not found", key);
}
return data;
......@@ -421,8 +421,8 @@ public class StreamStore {
buffer = nextBuffer();
} catch (IllegalStateException e) {
String msg = DataUtils.formatMessage(
DataUtils.ERROR_BLOCK_NOT_FOUND,
"Block not found in id {0}",
DataUtils.ERROR_BLOCK_NOT_FOUND,
"Block not found in id {0}",
Arrays.toString(idBuffer.array()));
throw new IOException(msg, e);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论