|
|
/*
|
|
|
* 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.
|
|
|
*/
|
|
|
// 版权声明:2010-2011年,MiCode开源社区(www.micode.net)
|
|
|
// 根据Apache License 2.0(“许可证”)授权;
|
|
|
// 除非遵守许可证,否则不得使用此文件。
|
|
|
// 您可以在以下网址获得许可证:
|
|
|
//
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
//
|
|
|
// 除非适用法律要求或书面同意,根据许可证分发的软件按“原样”分发,
|
|
|
// 不提供任何明示或暗示的保证或条件。
|
|
|
// 请参阅控制权限和限制的许可证具体语言。
|
|
|
package net.micode.notes.gtask.exception;
|
|
|
// 定义包名为net.micode.notes.gtask.exception。
|
|
|
public class NetworkFailureException extends Exception {
|
|
|
private static final long serialVersionUID = 2107610287180234136L;
|
|
|
// 定义一个公共类NetworkFailureException,它继承自Exception。
|
|
|
// 定义一个私有的静态最终字段serialVersionUID,值为2107610287180234136L。
|
|
|
public NetworkFailureException() {
|
|
|
super();
|
|
|
}
|
|
|
// 定义NetworkFailureException类的无参数构造函数,调用父类的无参数构造函数。
|
|
|
public NetworkFailureException(String paramString) {
|
|
|
super(paramString);
|
|
|
}
|
|
|
// 定义NetworkFailureException类的一个构造函数,接收一个字符串参数paramString,并将其传递给父类的构造函数。
|
|
|
public NetworkFailureException(String paramString, Throwable paramThrowable) {
|
|
|
super(paramString, paramThrowable);
|
|
|
}
|
|
|
// 定义NetworkFailureException类的一个构造函数,接收一个字符串参数paramString和一个Throwable类型的参数paramThrowable,并将它们传递给父类的构造函数。
|
|
|
} |