You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Notes/src/ActionFailureException.java

67 lines
2.9 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)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* 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
*
* 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.
*/
/*
* Description支持小米便签运行过程中的运行异常处理。
*/
/**
* @ProjectName: MiNote
* @Package: net.micode.notes.gtask.exception
* @ClassName: ActionFailureException
* @Description:继承自 RuntimeException表示在执行某个操作时出现了失败的情况。该异常类可以用于在程序执行过程中抛出并捕获异常以便进行错误处理。
* @Author: cyh
*/
package net.micode.notes.gtask.exception;
public class ActionFailureException extends RuntimeException {
private static final long serialVersionUID = 4425249765923293627L;//serialVersionUID相当于java类的身份证。主要用于版本控制。
/**
* @功能名: ActionFailureException()
* @功能描述: ActionFailureException 异常类的无参构造
* @实现过程:该方法调用了父类 RuntimeException 的无参构造方法,用于创建一个没有详细信息的异常对象
* @Author:cyh
*/
public ActionFailureException() {
super();
}
/**
* @功能名ActionFailureException(String paramString)
* @参数String paramString
* @功能描述ActionFailureException 异常类的带有字符串参数的构造
* @实现过程:调用了父类 RuntimeException 的带有字符串参数的构造方法,用于创建一个包含详细错误信息的异常对象。具体错误信息由参数 paramString 指定
* @Author:cyh
*/
public ActionFailureException(String paramString) {
super(paramString);
}
/**
* @功能名ActionFailureException(String paramString, Throwable paramThrowable)
* @参数String paramString, Throwable paramThrowable
* @功能描述ActionFailureException 异常类的带有字符串参数和可抛出对象参数的构造
* @实现过程:调用了父类 RuntimeException 的带有字符串参数和可抛出对象参数的构造方法,用于创建一个包含详细错误信息和可抛出对象的异常对象。具体错误信息由参数 paramString 指定,可抛出对象由参数 paramThrowable 指定。
* @Author:cyh
*/
public ActionFailureException(String paramString, Throwable paramThrowable) {
super(paramString, paramThrowable);
}
}