Remove trailing whitespace
[unical.git] / gson / com / google / gson / JsonIOException.java
CommitLineData
cfd903b6
MG
1/*
2 * Copyright (C) 2008 Google Inc.
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16package com.google.gson;
17
18/**
19 * This exception is raised when Gson was unable to read an input stream
20 * or write to one.
070d3ab2 21 *
cfd903b6
MG
22 * @author Inderjeet Singh
23 * @author Joel Leitch
24 */
25public final class JsonIOException extends JsonParseException {
26 private static final long serialVersionUID = 1L;
27
28 public JsonIOException(String msg) {
29 super(msg);
30 }
31
32 public JsonIOException(String msg, Throwable cause) {
33 super(msg, cause);
34 }
35
36 /**
37 * Creates exception with the specified cause. Consider using
38 * {@link #JsonIOException(String, Throwable)} instead if you can describe what happened.
39 *
40 * @param cause root exception that caused this exception to be thrown.
41 */
42 public JsonIOException(Throwable cause) {
43 super(cause);
44 }
45}
This page took 0.011035 seconds and 4 git commands to generate.