]>
iEval git - unical.git/blob - gson/com/google/gson/JsonSyntaxException.java
2 * Copyright (C) 2010 Google Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com
.google
.gson
;
19 * This exception is raised when Gson attempts to read (or write) a malformed
22 * @author Inderjeet Singh
25 public final class JsonSyntaxException
extends JsonParseException
{
27 private static final long serialVersionUID
= 1L;
29 public JsonSyntaxException(String msg
) {
33 public JsonSyntaxException(String msg
, Throwable cause
) {
38 * Creates exception with the specified cause. Consider using
39 * {@link #JsonSyntaxException(String, Throwable)} instead if you can
40 * describe what actually happened.
42 * @param cause root exception that caused this exception to be thrown.
44 public JsonSyntaxException(Throwable cause
) {
This page took 0.039239 seconds and 4 git commands to generate.