Enum ErrorProperties.IncludeStacktrace
- java.lang.Object
- java.lang.Enum<ErrorProperties.IncludeStacktrace>
- org.springframework.boot.autoconfigure.web.ErrorProperties.IncludeStacktrace
- All Implemented Interfaces:
Serializable
,Comparable<ErrorProperties.IncludeStacktrace>
- Enclosing class:
- ErrorProperties
public static enum ErrorProperties.IncludeStacktrace extends Enum<ErrorProperties.IncludeStacktrace>
Include Stacktrace attribute options.
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Always add stacktrace information.NEVER
Never add stacktrace information.ON_TRACE_PARAM
Add stacktrace information when the "trace" request parameter is "true".
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorProperties.IncludeStacktrace
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorProperties.IncludeStacktrace[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
NEVER
public static final ErrorProperties.IncludeStacktrace NEVER
Never add stacktrace information.
ALWAYS
public static final ErrorProperties.IncludeStacktrace ALWAYS
Always add stacktrace information.
ON_TRACE_PARAM
public static final ErrorProperties.IncludeStacktrace ON_TRACE_PARAM
Add stacktrace information when the "trace" request parameter is "true".
Method Detail
values
public static ErrorProperties.IncludeStacktrace[] 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 (ErrorProperties.IncludeStacktrace c : ErrorProperties.IncludeStacktrace.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static ErrorProperties.IncludeStacktrace 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