@@ -1363,13 +1363,13 @@ public <T extends JsonNode> T requireNonNull() {
13631363 * JSON Object value) and has value for specified property with key {@code propertyName}
13641364 * (but note that value may be explicit JSON null value).
13651365 * If this node is Object Node and has value for specified property, matching value
1366- * is returned; otherwise {@link IllegalArgumentException } is thrown.
1366+ * is returned; otherwise {@link JsonNodeException } is thrown.
13671367 *
13681368 * @param propertyName Name of property to access
13691369 *
13701370 * @return Value of the specified property of this Object node
13711371 *
1372- * @throws IllegalArgumentException if this node is not an Object node or if it does not
1372+ * @throws JsonNodeException if this node is not an Object node or if it does not
13731373 * have value for specified property
13741374 */
13751375 public abstract JsonNode required (String propertyName );
@@ -1383,13 +1383,13 @@ public <T extends JsonNode> T requireNonNull() {
13831383 * JSON Array value) and has value for specified {@code index}
13841384 * (but note that value may be explicit JSON null value).
13851385 * If this node is Array Node and has value for specified index, value at index
1386- * is returned; otherwise {@link IllegalArgumentException } is thrown.
1386+ * is returned; otherwise {@link JsonNodeException } is thrown.
13871387 *
13881388 * @param index Index of the value of this Array node to access
13891389 *
13901390 * @return Value at specified index of this Array node
13911391 *
1392- * @throws IllegalArgumentException if this node is not an Array node or if it does not
1392+ * @throws JsonNodeException if this node is not an Array node or if it does not
13931393 * have value for specified index
13941394 */
13951395 public abstract JsonNode required (int index );
@@ -1403,13 +1403,13 @@ public <T extends JsonNode> T requireNonNull() {
14031403 * starting from {@code this} node
14041404 * (but note that value may be explicit JSON null value).
14051405 * If such value node exists it is returned;
1406- * otherwise {@link IllegalArgumentException } is thrown.
1406+ * otherwise {@link JsonNodeException } is thrown.
14071407 *
14081408 * @param pathExpr {@link JsonPointer} expression (as String) to use for finding value node
14091409 *
14101410 * @return Matching value node for given expression
14111411 *
1412- * @throws IllegalArgumentException if no value node exists at given {@code JSON Pointer} path
1412+ * @throws JsonNodeException if no value node exists at given {@code JSON Pointer} path
14131413 */
14141414 public JsonNode requiredAt (String pathExpr ) {
14151415 return requiredAt (JsonPointer .compile (pathExpr ));
@@ -1424,13 +1424,13 @@ public JsonNode requiredAt(String pathExpr) {
14241424 * starting from {@code this} node
14251425 * (but note that value may be explicit JSON null value).
14261426 * If such value node exists it is returned;
1427- * otherwise {@link IllegalArgumentException } is thrown.
1427+ * otherwise {@link JsonNodeException } is thrown.
14281428 *
14291429 * @param path {@link JsonPointer} expression to use for finding value node
14301430 *
14311431 * @return Matching value node for given expression
14321432 *
1433- * @throws IllegalArgumentException if no value node exists at given {@code JSON Pointer} path
1433+ * @throws JsonNodeException if no value node exists at given {@code JSON Pointer} path
14341434 */
14351435 public final JsonNode requiredAt (final JsonPointer path ) {
14361436 JsonPointer currentExpr = path ;
0 commit comments