1 package cn.home1.oss.boot.autoconfigure;
2
3 import static cn.home1.oss.boot.autoconfigure.AppErrorProperties.SearchStrategy.HIERARCHY_FIRST;
4 import static java.lang.Boolean.FALSE;
5
6 import lombok.Data;
7
8 @SuppressWarnings({"PMD.ImmutableField", "PMD.SingularField", "PMD.UnusedPrivateField"})
9 @Data
10 public class AppErrorProperties {
11
12 public enum SearchStrategy {
13
14 ORDER_FIRST, HIERARCHY_FIRST
15 }
16
17
18
19
20 private Boolean handlerEnabled;
21
22
23
24
25 private SearchStrategy searchStrategy;
26
27 public AppErrorProperties() {
28 this.handlerEnabled = FALSE;
29 this.searchStrategy = HIERARCHY_FIRST;
30 }
31 }