Debian Codegraph @

src/jakarta/json/stream/JsonGenerationException.java

raw symbols SCIP
1 /*
2 * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v. 2.0, which is available at
6 * http://www.eclipse.org/legal/epl-2.0.
7 *
8 * This Source Code may also be made available under the following Secondary
9 * Licenses when the conditions for such availability set forth in the
10 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 * version 2 with the GNU Classpath Exception, which is available at
12 * https://www.gnu.org/software/classpath/license.html.
13 *
14 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 */
16
17 package jakarta.json.stream;
18
19 import jakarta.json.JsonException;
20
21 /**
22 * {@code JsonGenerationException} indicates an incorrect JSON is
23 * being generated.
24 */
25 public class JsonGenerationException extends JsonException {
26
27 /** for serialization */
28 private static final long serialVersionUID = -207609100806940680L;
29
30 /**
31 * Constructs a new runtime exception with the specified detail message.
32 * The cause is not initialized, and may subsequently be initialized by a
33 * call to {@link #initCause}.
34 *
35 * @param message the detail message. The detail message is saved for
36 * later retrieval by the {@link #getMessage()} method.
37 */
38 public JsonGenerationException(String message) {
39 super(message);
40 }
41
42 /**
43 * Constructs a new runtime exception with the specified detail message and
44 * cause. <p>Note that the detail message associated with
45 * {@code cause} is <i>not</i> automatically incorporated in
46 * this runtime exception's detail message.
47 *
48 * @param message the detail message (which is saved for later retrieval
49 * by the {@link #getMessage()} method).
50 * @param cause the cause (which is saved for later retrieval by the
51 * {@link #getCause()} method). (A <code>null</code> value is
52 * permitted, and indicates that the cause is nonexistent or
53 * unknown.)
54 */
55 public JsonGenerationException(String message, Throwable cause) {
56 super(message, cause);
57 }
58
59 }
60