Enum Class HttpServerConfiguration.ErrorResponseIncludeMessageMode
java.lang.Object
java.lang.Enum<HttpServerConfiguration.ErrorResponseIncludeMessageMode>
io.micronaut.http.server.HttpServerConfiguration.ErrorResponseIncludeMessageMode
- All Implemented Interfaces:
Serializable, Comparable<HttpServerConfiguration.ErrorResponseIncludeMessageMode>, Constable
- Enclosing class:
HttpServerConfiguration
public static enum HttpServerConfiguration.ErrorResponseIncludeMessageMode
extends Enum<HttpServerConfiguration.ErrorResponseIncludeMessageMode>
When to include unhandled exception messages in error responses.
- Since:
- 5.1.11
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Never include the exception message. -
ALWAYS
Always include the exception message. -
ON_PARAM
Include the exception message when themessagerequest parameter is present and notfalse.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-