01: /*
02: * Copyright 2006 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16: package com.google.gwt.json.client;
17:
18: /**
19: * An exception that can be thrown when an interaction with a JSON data
20: * structure fails.
21: */
22: public class JSONException extends RuntimeException {
23:
24: /**
25: * Constructs a new JSONException.
26: */
27: public JSONException() {
28: super ();
29: }
30:
31: /**
32: * Constructs a new JSONException with the specified message.
33: */
34: public JSONException(String message) {
35: super (message);
36: }
37:
38: /**
39: * Constructs a new JSONException with the specified message and cause.
40: */
41: public JSONException(String message, Throwable cause) {
42: super (message, cause);
43: }
44:
45: /**
46: * Constructs a new JSONException with the specified cause.
47: */
48: public JSONException(Throwable cause) {
49: super(cause);
50: }
51:
52: }
|