+++ /dev/null
-/*--------------------------------------------------------------------------\r
- * Copyright 2007 Taro L. Saito\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *--------------------------------------------------------------------------*/\r
-//--------------------------------------\r
-// XerialJ Project\r
-//\r
-// JSONException.java\r
-// Since: 2007/04/26\r
-//\r
-// $URL$ \r
-// $Author$\r
-//--------------------------------------\r
-package org.xerial.json;\r
-\r
-import org.xerial.core.XerialException;\r
-\r
-/**\r
- * Exception class related JSON\r
- * \r
- * @author leo\r
- * \r
- */\r
-public class JSONException extends XerialException\r
-{\r
- private static final long serialVersionUID = 1L;\r
-\r
- /**\r
- * @param errorCode\r
- */\r
- public JSONException(JSONErrorCode errorCode) {\r
- super(errorCode);\r
- }\r
-\r
- public JSONException(JSONErrorCode errorCode, String message) {\r
- super(errorCode, message);\r
- }\r
-\r
- /**\r
- * @param errorCode\r
- * @param message\r
- * @param e\r
- */\r
- public JSONException(JSONErrorCode errorCode, String message, Throwable e) {\r
- super(errorCode, message, e);\r
- }\r
-\r
- /**\r
- * @param errorCode\r
- * @param e\r
- */\r
- public JSONException(JSONErrorCode errorCode, Throwable e) {\r
- super(errorCode);\r
- }\r
-\r
- /**\r
- * Gets the error code\r
- * \r
- * @return the error code\r
- */\r
- @SuppressWarnings("unchecked")\r
- public JSONErrorCode getErrorCode() {\r
- return JSONErrorCode.class.cast(errorCode);\r
- }\r
-}\r