|
|
|
@ -1,33 +1,45 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
|
* // 版权声明,指定代码的版权所有者和代码编写的时间范围
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* // 声明该代码是根据Apache License 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
|
|
|
|
|
* // 许可证的URL链接
|
|
|
|
|
*
|
|
|
|
|
* 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;
|
|
|
|
|
// 指定该Java文件的包路径
|
|
|
|
|
|
|
|
|
|
public class ActionFailureException extends RuntimeException {
|
|
|
|
|
// 声明一个名为ActionFailureException的公共类,该类继承自RuntimeException
|
|
|
|
|
private static final long serialVersionUID = 4425249765923293627L;
|
|
|
|
|
// 声明一个常量serialVersionUID,用于序列化时保持版本的兼容性
|
|
|
|
|
|
|
|
|
|
public ActionFailureException() {
|
|
|
|
|
super();
|
|
|
|
|
// 默认构造函数,调用父类RuntimeException的无参构造函数
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ActionFailureException(String paramString) {
|
|
|
|
|
super(paramString);
|
|
|
|
|
// 带有一个字符串参数的构造函数,调用父类RuntimeException的带字符串参数的构造函数
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ActionFailureException(String paramString, Throwable paramThrowable) {
|
|
|
|
|
super(paramString, paramThrowable);
|
|
|
|
|
// 带有一个字符串和一个Throwable参数的构造函数,调用父类RuntimeException的相应构造函数
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|