你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BatchException 类
- java.
lang. Object - Exception
- StorageException
- com.
microsoft. azure. storage. BatchException
- com.
public class BatchException extends StorageException
批处理请求中的一个或多个子请求失败时的异常。 此异常是 StorageException的 映射到子请求的父对象的 。 的 Throwable 扩展不能使用泛型,因此此类使用多个带有通配符的数据结构。 由于只能将同一请求类型的组一起批处理,因此批处理调用方将在上下文中知道预期类型,并且可以安全地强制转换结果。 有关如何正确处理批处理异常的示例,请参阅示例项目。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
Map<?, Storage |
getExceptions() |
Map<?, ?> | getSuccessfulResponses() |
继承成员
StorageException.errorCode
StorageException.extendedErrorInformation
StorageException.getErrorCode()
StorageException.getExtendedErrorInformation()
StorageException.getHttpStatusCode()
StorageException.StorageException(final String errorCode, final String message, final Exception innerException)
StorageException.StorageException(final String errorCode, final String message, final int statusCode, final StorageExtendedErrorInformation extendedErrorInfo, final Exception innerException)
StorageException.translateClientException(final Exception cause)
StorageException.translateException(final StorageRequest<?, ?, ?> request, final Exception cause, final OperationContext opContext)
方法详细信息
getExceptions
public Map getExceptions()
getSuccessfulResponses
public Map getSuccessfulResponses()