public enum CliStyleHandling extends Enum<CliStyleHandling>
CliStyle.optionNameNotAcceptedByFilter()
,
CliStyle.optionSyntaxAssignment()
,
CliStyle.optionDuplicated()
,
CliStyle.modeUndefined()
Enum Constant and Description |
---|
DEBUG
Log a debug message on occurrence.
|
EXCEPTION
Cause an exception on occurrence.
|
OK
Accept the according style as normal.
|
WARNING
Log a warning on occurrence.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
handle(org.slf4j.Logger logger,
RuntimeException exception)
This method performs the handling of the anomaly represented by the given
exception . |
static CliStyleHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CliStyleHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CliStyleHandling OK
public static final CliStyleHandling DEBUG
public static final CliStyleHandling WARNING
public static final CliStyleHandling EXCEPTION
public static CliStyleHandling[] values()
for (CliStyleHandling c : CliStyleHandling.values()) System.out.println(c);
public static CliStyleHandling 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 nullpublic abstract void handle(org.slf4j.Logger logger, RuntimeException exception)
exception
. OK
.logger
- is the Logger
potentially used to log the exception (-message).exception
- informs about the anomaly.Copyright © 2001–2016 mmm-Team. All rights reserved.