public class BatchUpdateErrorInfo extends Object
当批量更新过程中某个批次执行失败时,该类用于封装出错批次的索引、 异常原因及其错误类型,便于调用方进行针对性的错误处理。
BatchUpdateResult| Constructor and Description |
|---|
BatchUpdateErrorInfo(int batchIndex,
Throwable cause)
构造一个批量更新错误信息实例。
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchIndex()
获取批次索引
|
Throwable |
getCause()
获取错误原因
|
Class<? extends Throwable> |
getErrorType()
获取错误类型
|
String |
toString()
返回该错误信息的字符串表示,包含批次索引、错误类型和错误消息。
|
public BatchUpdateErrorInfo(int batchIndex,
Throwable cause)
batchIndex - 出错的批次索引cause - 导致该批次执行失败的异常public int getBatchIndex()
public Throwable getCause()
Copyright © 2026. All rights reserved.