public enum ThrowableType extends Enum<ThrowableType>
Throwable
objects into failure/recovery classes.Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static ThrowableType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThrowableType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.