public enum ThrowableType extends Enum<ThrowableType>
Throwable objects into failure/recovery classes.| 枚举常量和说明 |
|---|
EnvironmentError
This indicates an error related to the running environment, such as hardware error, service
issue, in which case we should consider blacklisting the machine.
|
NonRecoverableError
This indicates error that would not succeed even with retry, such as DivideZeroException.
|
PartitionDataMissingError
Data consumption error, which indicates that we should revoke the producer.
|
RecoverableError
This indicates a problem that is recoverable.
|
public static final ThrowableType NonRecoverableError
public static final ThrowableType PartitionDataMissingError
public static final ThrowableType EnvironmentError
public static final ThrowableType RecoverableError
public static ThrowableType[] values()
for (ThrowableType c : ThrowableType.values()) System.out.println(c);
public static ThrowableType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.