Enum MacroExceptionCode
- java.lang.Object
-
- java.lang.Enum<MacroExceptionCode>
-
- com.synopsys.arc.jenkins.plugins.rolestrategy.MacroExceptionCode
-
- All Implemented Interfaces:
Serializable
,Comparable<MacroExceptionCode>
public enum MacroExceptionCode extends Enum<MacroExceptionCode>
Contains type of macro exception.- Since:
- 2.1.0
- Author:
- Oleg Nenashev
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Not_Macro
UnknownError
Wrong_arguments
WrongFormat
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MacroExceptionCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static MacroExceptionCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UnknownError
public static final MacroExceptionCode UnknownError
-
Not_Macro
public static final MacroExceptionCode Not_Macro
-
WrongFormat
public static final MacroExceptionCode WrongFormat
-
Wrong_arguments
public static final MacroExceptionCode Wrong_arguments
-
-
Method Detail
-
values
public static MacroExceptionCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MacroExceptionCode c : MacroExceptionCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MacroExceptionCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-