Enum ExceptionVerbosity
- All Implemented Interfaces:
Serializable
,Comparable<ExceptionVerbosity>
,java.lang.constant.Constable
public enum ExceptionVerbosity extends Enum<ExceptionVerbosity>
The verbosity of exceptions logged by annotated HTTP services.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
Log all exceptions.NONE
Do not log any exceptions.UNHANDLED
Log exceptions which are not handled by anyExceptionHandler
specified by a user. -
Method Summary
Modifier and Type Method Description static ExceptionVerbosity
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExceptionVerbosity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALL
Log all exceptions. -
UNHANDLED
Log exceptions which are not handled by anyExceptionHandler
specified by a user. However, the following exceptions would not be logged because they are from the well-known cause.IllegalArgumentException
HttpStatusException
HttpResponseException
- Other expected exceptions as defined in
Exceptions.isExpected(Throwable)
-
NONE
Do not log any exceptions.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-