5MI/ActionFailureException.java

75 lines
2.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
* 这段注释声明了文件的版权信息指出该文件的版权属于2010-2011年间的MiCode开源社区。
*/
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* 这段注释说明该文件遵循Apache License, Version 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
* Apache License, Version 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;
// 这行代码声明了当前类所在的包名即net.micode.notes.gtask.exception。
public class ActionFailureException extends RuntimeException {
// 这行代码声明了一个名为ActionFailureException的类它继承自RuntimeException类。
private static final long serialVersionUID = 4425249765923293627L;
// 这行代码声明了一个名为serialVersionUID的静态常量用于序列化版本控制。
public ActionFailureException() {
// 这是ActionFailureException的无参构造函数它调用了父类RuntimeException的无参构造函数。
super();
}
public ActionFailureException(String paramString) {
// 这是ActionFailureException的一个带有一个String类型参数的构造函数用于传递异常信息。
super(paramString);
}
public ActionFailureException(String paramString, Throwable paramThrowable) {
// 这是ActionFailureException的一个带有String类型和Throwable类型参数的构造函数
// 用于传递异常信息和导致异常的原始异常。
super(paramString, paramThrowable);
}
}