1 package fr.inrae.agroclim.indicators.exception;
2
3 import java.io.Serializable;
4 import java.util.List;
5
6
7
8
9
10
11 public class IndicatorsException extends ErrorMessageException {
12
13
14
15 private static final String BUNDLE_NAME = "fr.inrae.agroclim.indicators.resources.messages";
16
17
18
19
20 private static final long serialVersionUID = 6030595237342400006L;
21
22
23
24
25
26
27 public IndicatorsException(final ErrorType errorType) {
28 super(new ErrorMessage(BUNDLE_NAME, errorType, List.of()));
29 }
30
31
32
33
34
35
36
37 public IndicatorsException(final ErrorType errorType, final Serializable... arguments) {
38 super(new ErrorMessage(BUNDLE_NAME, errorType, List.of(arguments)));
39 }
40
41
42
43
44
45
46
47
48
49
50
51 public IndicatorsException(final ErrorType errorType, final Throwable cause, final Serializable... arguments) {
52 super(new ErrorMessage(BUNDLE_NAME, errorType, List.of(arguments)), cause);
53 }
54 }