Package org.bremersee.exception
Class RestApiExceptionMapperProperties
- java.lang.Object
-
- org.bremersee.exception.RestApiExceptionMapperProperties
-
@ConfigurationProperties(prefix="bremersee.exception-mapping") public class RestApiExceptionMapperProperties extends Object
Configuration properties for the rest api exception handler or resolver.- Author:
- Christian Bremer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestApiExceptionMapperProperties.ExceptionMappingThe exception mapping.static classRestApiExceptionMapperProperties.ExceptionMappingConfigThe exception mapping config.
-
Constructor Summary
Constructors Constructor Description RestApiExceptionMapperProperties()Instantiates rest api exception mapper properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestApiExceptionMapperProperties.ExceptionMappingfindExceptionMapping(Throwable throwable)Find exception mapping.RestApiExceptionMapperProperties.ExceptionMappingConfigfindExceptionMappingConfig(Throwable throwable)Find exception mapping config.
-
-
-
Method Detail
-
findExceptionMapping
public RestApiExceptionMapperProperties.ExceptionMapping findExceptionMapping(Throwable throwable)
Find exception mapping.- Parameters:
throwable- the throwable- Returns:
- the exception mapping
-
findExceptionMappingConfig
public RestApiExceptionMapperProperties.ExceptionMappingConfig findExceptionMappingConfig(Throwable throwable)
Find exception mapping config.- Parameters:
throwable- the throwable- Returns:
- the exception mapping config
-
-