|
|
@ -16,18 +16,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
package net.micode.notes.gtask.exception;
|
|
|
|
package net.micode.notes.gtask.exception;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Google Tasks同步操作失败异常
|
|
|
|
|
|
|
|
* 继承自RuntimeException,用于表示在与Google Tasks服务交互过程中发生的错误
|
|
|
|
|
|
|
|
* 通常在JSON操作失败、网络请求异常或数据解析错误时抛出
|
|
|
|
|
|
|
|
*/
|
|
|
|
public class ActionFailureException extends RuntimeException {
|
|
|
|
public class ActionFailureException extends RuntimeException {
|
|
|
|
private static final long serialVersionUID = 4425249765923293627L;
|
|
|
|
private static final long serialVersionUID = 4425249765923293627L;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 默认构造函数
|
|
|
|
|
|
|
|
*/
|
|
|
|
public ActionFailureException() {
|
|
|
|
public ActionFailureException() {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ActionFailureException(String paramString) {
|
|
|
|
/**
|
|
|
|
super(paramString);
|
|
|
|
* 使用错误消息创建异常实例
|
|
|
|
|
|
|
|
* @param message 异常描述信息
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public ActionFailureException(String message) {
|
|
|
|
|
|
|
|
super(message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ActionFailureException(String paramString, Throwable paramThrowable) {
|
|
|
|
/**
|
|
|
|
super(paramString, paramThrowable);
|
|
|
|
* 使用错误消息和原始异常创建异常实例
|
|
|
|
|
|
|
|
* @param message 异常描述信息
|
|
|
|
|
|
|
|
* @param cause 原始异常
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public ActionFailureException(String message, Throwable cause) {
|
|
|
|
|
|
|
|
super(message, cause);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|