public final class ErrorAttributeOptions
extends java.lang.Object
ErrorAttributes
.Modifier and Type | Class and Description |
---|---|
static class |
ErrorAttributeOptions.Include
Error attributes that can be included in an error response.
|
Modifier and Type | Method and Description |
---|---|
static ErrorAttributeOptions |
defaults()
Create an
ErrorAttributeOptions with defaults. |
ErrorAttributeOptions |
excluding(ErrorAttributeOptions.Include... excludes)
Return an
ErrorAttributeOptions that excludes the specified attribute
ErrorAttributeOptions.Include options. |
java.util.Set<ErrorAttributeOptions.Include> |
getIncludes()
Get all options for including attributes in the error response.
|
ErrorAttributeOptions |
including(ErrorAttributeOptions.Include... includes)
Return an
ErrorAttributeOptions that includes the specified attribute
ErrorAttributeOptions.Include options. |
boolean |
isIncluded(ErrorAttributeOptions.Include include)
Get the option for including the specified attribute in the error response.
|
static ErrorAttributeOptions |
of(java.util.Collection<ErrorAttributeOptions.Include> includes)
Create an
ErrorAttributeOptions that includes the specified attribute
ErrorAttributeOptions.Include options. |
static ErrorAttributeOptions |
of(ErrorAttributeOptions.Include... includes)
Create an
ErrorAttributeOptions that includes the specified attribute
ErrorAttributeOptions.Include options. |
public boolean isIncluded(ErrorAttributeOptions.Include include)
include
- error attribute to gettrue
if the Include
attribute is included in the error
response, false
otherwisepublic java.util.Set<ErrorAttributeOptions.Include> getIncludes()
public ErrorAttributeOptions including(ErrorAttributeOptions.Include... includes)
ErrorAttributeOptions
that includes the specified attribute
ErrorAttributeOptions.Include
options.includes
- error attributes to includeErrorAttributeOptions
public ErrorAttributeOptions excluding(ErrorAttributeOptions.Include... excludes)
ErrorAttributeOptions
that excludes the specified attribute
ErrorAttributeOptions.Include
options.excludes
- error attributes to excludeErrorAttributeOptions
public static ErrorAttributeOptions defaults()
ErrorAttributeOptions
with defaults.ErrorAttributeOptions
public static ErrorAttributeOptions of(ErrorAttributeOptions.Include... includes)
ErrorAttributeOptions
that includes the specified attribute
ErrorAttributeOptions.Include
options.includes
- error attributes to includeErrorAttributeOptions
public static ErrorAttributeOptions of(java.util.Collection<ErrorAttributeOptions.Include> includes)
ErrorAttributeOptions
that includes the specified attribute
ErrorAttributeOptions.Include
options.includes
- error attributes to includeErrorAttributeOptions