-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSzBadInputException.java
161 lines (150 loc) · 7.09 KB
/
SzBadInputException.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package com.senzing.g2.engine;
import java.util.Map;
/**
* Defines an exceptional condition when an invalid input value is provided to a Senzing operation
* preventing the successful completion of that operation.
*/
public class SzBadInputException extends SzException {
/** Default constructor. */
public SzBadInputException() {
super();
}
/**
* Constructs with a message explaing the reason for the exception.
*
* @param message The message explaining the reason for the exception.
*/
public SzBadInputException(String message) {
super(message);
}
/**
* Constructs with a message explaing the reason for the exception.
*
* @param errorCode The underlying senzing error code.
* @param message The message explaining the reason for the exception.
*/
public SzBadInputException(int errorCode, String message) {
super(errorCode, message);
}
/**
* Constructs with the {@link Throwable} that is the underlying cause for the exception.
*
* @param cause The message The message explaining the reason for the exception.
*/
public SzBadInputException(Throwable cause) {
super(cause);
}
/**
* Constructs with a message explaing the reason for the exception and the {@link Throwable} that
* is the underlying cause for the exception.
*
* @param message The message explaining the reason for the exception.
* @param cause The message The message explaining the reason for the exception.
*/
public SzBadInputException(String message, Throwable cause) {
super(message, cause);
}
/**
* Constructs with the Senzing error code, the message explaing the reason for the exception and
* the {@link Throwable} that is the underlying cause for the exception.
*
* @param errorCode The underlying senzing error code.
* @param message The message explaining the reason for the exception.
* @param cause The message The message explaining the reason for the exception.
*/
public SzBadInputException(int errorCode, String message, Throwable cause) {
super(errorCode, message, cause);
}
/**
* Constructs with the message explaing the reason for the exception, the method signature of the
* method that failed and the {@link Map} describing the parmaeters with which that method was
* called.
*
* <p><b>NOTE:</b> The specified {@link Map} describing the parameters should preferrably be in
* order of how the parameters appear in the method signature. Further, parameter values should be
* {@linkplain #redact(Object) redacted} to protected sensitive data from being exposed in error
* dialogs or log files.
*
* @param message The message explaining the reason for the exception.
* @param methodSignature The name of the method being called (usually prefixed by its simple
* class name and including its parameter types).
* @param methodParameters The {@link Map} describing the method parameters, preferrably an
* ordered map according to the parameter positions in the method signature.
*/
public SzBadInputException(
String message, String methodSignature, Map<String, Object> methodParameters) {
super(message, methodSignature, methodParameters);
}
/**
* Constructs with the Senzing error code, the message explaing the reason for the exception, the
* method signature of the method that failed and the {@link Map} describing the parmaeters with
* which that method was called.
*
* <p><b>NOTE:</b> The specified {@link Map} describing the parameters should preferrably be in
* order of how the parameters appear in the method signature. Further, parameter values should be
* {@linkplain #redact(Object) redacted} to protected sensitive data from being exposed in error
* dialogs or log files.
*
* @param errorCode The underlying senzing error code.
* @param message The message explaining the reason for the exception.
* @param methodSignature The name of the method being called (usually prefixed by its simple
* class name and including its parameter types).
* @param methodParameters The {@link Map} describing the method parameters, preferrably an
* ordered map according to the parameter positions in the method signature.
*/
public SzBadInputException(
int errorCode, String message, String methodSignature, Map<String, Object> methodParameters) {
super(errorCode, message, methodSignature, methodParameters);
}
/**
* Constructs with the message explaing the reason for the exception, the method signature of the
* method that failed, the {@link Map} describing the parmaeters with which that method was called
* and the {@link Throwable} that is the underlying cause for the exception.
*
* <p><b>NOTE:</b> The specified {@link Map} describing the parameters should preferrably be in
* order of how the parameters appear in the method signature. Further, parameter values should be
* {@linkplain #redact(Object) redacted} to protected sensitive data from being exposed in error
* dialogs or log files.
*
* @param message The message explaining the reason for the exception.
* @param methodSignature The name of the method being called (usually prefixed by its simple
* class name and including its parameter types).
* @param methodParameters The {@link Map} describing the method parameters, preferrably an
* ordered map according to the parameter positions in the method signature.
* @param cause The message The message explaining the reason for the exception.
*/
public SzBadInputException(
String message,
String methodSignature,
Map<String, Object> methodParameters,
Throwable cause) {
super(message, methodSignature, methodParameters, cause);
}
/**
* Constructs with the Senzing error code, the message explaing the reason for the exception, the
* method signature of the method that failed, the {@link Map} describing the parmaeters with
* which that method was called and the {@link Throwable} that is the underlying cause for the
* exception.
*
* <p><b>NOTE:</b> The specified {@link Map} describing the parameters should preferrably be in
* order of how the parameters appear in the method signature. Further, parameter values should be
* {@linkplain #redact(Object) redacted} to protected sensitive data from being exposed in error
* dialogs or log files.
*
* @param errorCode The underlying senzing error code.
* @param message The message explaining the reason for the exception.
* @param methodSignature The name of the method being called (usually prefixed by its simple
* class name and including its parameter types).
* @param methodParameters The {@link Map} describing the method parameters, preferrably an
* ordered map according to the parameter positions in the method signature.
* @param cause The message The message explaining the reason for the exception.
*/
public SzBadInputException(
int errorCode,
String message,
String methodSignature,
Map<String, Object> methodParameters,
Throwable cause) {
super(errorCode, message, methodSignature, methodParameters, cause);
}
}