维护gtask/exception

liming
laimaxgg 4 months ago
parent 1edf2ce72a
commit 363056dd2d

@ -1,33 +1,49 @@
/* /*
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) * (c) 2010-2011The MiCode (www.micode.net)
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Apache 2.0
* you may not use this file except in compliance with the License. * 使
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License.
*/ */
package net.micode.notes.gtask.exception; // 定义异常类所在的包 package net.micode.notes.gtask.exception;
public class ActionFailureException extends RuntimeException { // 定义一个运行时异常类,表示操作失败 /**
private static final long serialVersionUID = 4425249765923293627L; // 序列化ID用于版本控制 *
*/
public class ActionFailureException extends RuntimeException {
private static final long serialVersionUID = 4425249765923293627L;
public ActionFailureException() { // 默认构造函数 /**
super(); // 调用父类构造函数 * ActionFailureException
*/
public ActionFailureException() {
super();
} }
public ActionFailureException(String paramString) { // 带有错误信息的构造函数 /**
super(paramString); // 调用父类构造函数,传递错误信息 * 使 ActionFailureException
*
* @param paramString
*/
public ActionFailureException(String paramString) {
super(paramString);
} }
public ActionFailureException(String paramString, Throwable paramThrowable) { // 带有错误信息和原因的构造函数 /**
super(paramString, paramThrowable); // 调用父类构造函数,传递错误信息和原因 * 使 ActionFailureException
*
* @param paramString
* @param paramThrowable
*/
public ActionFailureException(String paramString, Throwable paramThrowable) {
super(paramString, paramThrowable);
} }
} }

@ -1,33 +1,49 @@
/* /*
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) * (c) 2010-2011The MiCode (www.micode.net)
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Apache 2.0
* you may not use this file except in compliance with the License. * 使
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License.
*/ */
package net.micode.notes.gtask.exception; // 定义异常类所在的包 package net.micode.notes.gtask.exception;
public class NetworkFailureException extends Exception { // 定义网络故障异常类继承自Exception类 /**
private static final long serialVersionUID = 2107610287180234136L; // 序列化ID用于版本控制 *
*/
public class NetworkFailureException extends Exception {
private static final long serialVersionUID = 2107610287180234136L;
public NetworkFailureException() { // 默认构造函数 /**
super(); // 调用父类构造函数 * NetworkFailureException
*/
public NetworkFailureException() {
super();
} }
public NetworkFailureException(String paramString) { // 带参数的构造函数,接受错误信息 /**
super(paramString); // 调用父类构造函数,传递错误信息 * 使 NetworkFailureException
*
* @param paramString
*/
public NetworkFailureException(String paramString) {
super(paramString);
} }
public NetworkFailureException(String paramString, Throwable paramThrowable) { // 带参数的构造函数,接受错误信息和根本原因 /**
super(paramString, paramThrowable); // 调用父类构造函数,传递错误信息和根本原因 * 使 NetworkFailureException
*
* @param paramString
* @param paramThrowable
*/
public NetworkFailureException(String paramString, Throwable paramThrowable) {
super(paramString, paramThrowable);
} }
} }

Loading…
Cancel
Save