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.
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)
*
* 遵循 Apache 许可证 2.0 版("许可证") ;
* 除非遵守许可证,否则不得使用此文件。
* 您可以在以下网址获取许可证副本:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 除非适用法律要求或书面同意,否则根据许可证分发的软件是按"原样"提供的,
* 不附带任何明示或暗示的保证或条件。请参阅许可证,了解管理权限和限制的具体语言。
*/
package net.micode.notes.gtask.exception ;
/**
* 网络失败异常类
* 用于标识与网络请求相关的异常(如连接失败、超时等)
*/
public class NetworkFailureException extends Exception {
private static final long serialVersionUID = 2107610287180234136L ; // 序列化版本号
/**
* 无参构造函数
*/
public NetworkFailureException ( ) {
super ( ) ; // 调用父类( Exception) 的无参构造
}
/**
* 带错误消息的构造函数
* @param paramString 异常消息
*/
public NetworkFailureException ( String paramString ) {
super ( paramString ) ; // 调用父类带消息的构造函数
}
/**
* 带错误消息和根源异常的构造函数
* @param paramString 异常消息
* @param paramThrowable 根源异常(导致当前异常的原始异常)
*/
public NetworkFailureException ( String paramString , Throwable paramThrowable ) {
super ( paramString , paramThrowable ) ; // 调用父类带消息和 Throwable 的构造函数
}
}