OSDN Git Service

removed all files
[xerial/xerial-core.git] / src / main / java / org / xerial / core / XerialException.java
diff --git a/src/main/java/org/xerial/core/XerialException.java b/src/main/java/org/xerial/core/XerialException.java
deleted file mode 100755 (executable)
index c0de8a8..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*--------------------------------------------------------------------------\r
- *  Copyright 2004 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\r
-//\r
-// XerialException.java\r
-// Since: 2004/12/21\r
-//\r
-// $URL: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core/src/main/java/org/xerial/core/XerialException.java $\r
-// $Author:leo $\r
-//--------------------------------------\r
-package org.xerial.core;\r
-\r
-import org.xerial.json.JSONErrorCode;\r
-\r
-/**\r
- * Base exception class for Xerial Project.\r
- * \r
- * XerialException must be instantiated with an error code that implements\r
- * {@link ErrorCode} interface. To add your own error codes for the use with\r
- * {@link XerialException}, you have to implement the {@link ErrorCode}\r
- * interface. See examples of error codes: {@link XerialErrorCode},\r
- * {@link JSONErrorCode}, etc.\r
- * \r
- * @author leo\r
- * \r
- */\r
-public class XerialException extends Exception\r
-{\r
-\r
-    private static final long serialVersionUID = 1L;\r
-\r
-    protected final ErrorCode errorCode;\r
-\r
-    public XerialException(XerialException e) {\r
-        super(e.getErrorMessage());\r
-        this.errorCode = e.errorCode;\r
-    }\r
-\r
-    public XerialException(ErrorCode errorCode) {\r
-        super();\r
-        this.errorCode = errorCode;\r
-    }\r
-\r
-    public XerialException(ErrorCode errorCode, String message, Throwable cause) {\r
-        super(message, cause);\r
-        this.errorCode = errorCode;\r
-    }\r
-\r
-    public XerialException(ErrorCode errorCode, String message) {\r
-        super(message);\r
-        this.errorCode = errorCode;\r
-    }\r
-\r
-    public XerialException(ErrorCode errorCode, Throwable cause) {\r
-        super(cause);\r
-        this.errorCode = errorCode;\r
-    }\r
-\r
-    @SuppressWarnings("unchecked")\r
-    public <T> T getErrorCode() {\r
-        return (T) errorCode;\r
-    }\r
-\r
-    @Override\r
-    public String getMessage() {\r
-        return ExceptionHelper.getMessage(errorCode, super.getMessage());\r
-    }\r
-\r
-    private String getErrorMessage() {\r
-        return super.getMessage();\r
-    }\r
-\r
-}\r