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 | package Torello.Java.JSON;
import javax.json.*;
/**
* Used to indicate that one of the indices within a {@link JsonArray} contained null, where a
* valid primitive-value was expected. There are several convenience field-constants provided by
* the parent-class of this exception, and an additional field provided here too.
*
* <EMBED CLASS=globalDefs DATA-STRUCT=JsonArray DATA-TYPE=Array DATA-TYPE_ABBREV=Arr>
* <EMBED CLASS='external-html' DATA-FILE-ID=JE_FIELD_ARR>
* <EMBED CLASS='external-html' DATA-FILE-ID=JE_MSG>
* <EMBED CLASS='external-html' DATA-FILE-ID=JE_MSG_JNPAEX>
*/
@Torello.JavaDoc.JDHeaderBackgroundImg(EmbedTagFileID="JE_NP_UL")
@Torello.JavaDoc.CSSLinks(FileNames="JSONExceptions.css")
public class JsonNullPrimitiveArrException extends JsonBindingArrException
{
/** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */
public static final long serialVersionUID = 1;
/**
* Constructs a {@code JsonNullPrimitiveArrException} with no specified detail messsage,
* and the user-provided convenience-field values.
*
* @param errorSourceJsonArray <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJA>
* @param index <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_I>
* @param expectedJsonType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_EJT>
* @param methodReturnJavaType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_MRJT>
*/
public JsonNullPrimitiveArrException(
JsonArray errorSourceJsonArray,
int index,
JsonValue.ValueType expectedJsonType,
Class<?> methodReturnJavaType
)
{
super(
errorSourceJsonArray, index, expectedJsonType, JsonValue.NULL,
methodReturnJavaType,
"Attempt to assign Java-Null to a Java-Primitive Type"
);
}
/**
* Constructs a {@code JsonNullPrimitiveArrException} with the specified detail message, and
* user-provided convenience-field values.
*
* @param message the detail message.
* @param errorSourceJsonArray <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJA>
* @param index <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_I>
* @param expectedJsonType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_EJT>
* @param methodReturnJavaType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_MRJT>
*/
public JsonNullPrimitiveArrException(
String message,
JsonArray errorSourceJsonArray,
int index,
JsonValue.ValueType expectedJsonType,
Class<?> methodReturnJavaType
)
{
super(
message, errorSourceJsonArray, index, expectedJsonType, JsonValue.NULL,
methodReturnJavaType
);
}
}
|