Package org.bremersee.exception
Interface RestApiExceptionMapperProperties
- All Known Implementing Classes:
ImmutableRestApiExceptionMapperProperties
@Immutable
public interface RestApiExceptionMapperProperties
The rest api exception mapper properties.
- Author:
- Christian Bremer
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The exception mapping.static interface
The exception mapping config. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates rest api exception mapper properties builder.findExceptionMapping
(Throwable throwable) Find exception mapping.findExceptionMappingConfig
(Throwable throwable) Find exception mapping config.Gets default exception mapping.Gets default exception mapping config.Gets exception mapping configs.Gets exception mappings.
-
Method Details
-
builder
Creates rest api exception mapper properties builder.- Returns:
- the builder
-
getDefaultExceptionMapping
Gets default exception mapping.- Returns:
- the default exception mapping
-
getExceptionMappings
Gets exception mappings.- Returns:
- the exception mappings
-
getDefaultExceptionMappingConfig
@Default default RestApiExceptionMapperProperties.ExceptionMappingConfig getDefaultExceptionMappingConfig()Gets default exception mapping config.- Returns:
- the default exception mapping config
-
getExceptionMappingConfigs
@Default default List<RestApiExceptionMapperProperties.ExceptionMappingConfig> getExceptionMappingConfigs()Gets exception mapping configs.- Returns:
- the exception mapping configs
-
findExceptionMapping
Find exception mapping.- Parameters:
throwable
- the throwable- Returns:
- the exception mapping
-
findExceptionMappingConfig
default RestApiExceptionMapperProperties.ExceptionMappingConfig findExceptionMappingConfig(Throwable throwable) Find exception mapping config.- Parameters:
throwable
- the throwable- Returns:
- the exception mapping config
-