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.
2Q1/NetworkFailureException.java

34 lines
1.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.
*/
package net.micode.notes.gtask.exception;//这是一个 Java 包声明指定了该代码所在的包名为net.micode.notes.gtask.exception。
public class NetworkFailureException extends Exception {//定义了一个名为NetworkFailureException的公共类它继承自Exception类。
private static final long serialVersionUID = 2107610287180234136L;//这是一个私有静态最终的长整型变量serialVersionUID用于标识该类的序列化版本号。
public NetworkFailureException() {//这是NetworkFailureException类的无参构造函数它调用了父类Exception的无参构造函数。
super();
}
public NetworkFailureException(String paramString) {//这是一个带有一个字符串参数的构造函数它调用了父类Exception的带有一个字符串参数的构造函数并将参数传递给父类。
super(paramString);
}
public NetworkFailureException(String paramString, Throwable paramThrowable) {//这是一个带有一个字符串参数和一个Throwable参数的构造函数它调用了父类Exception的带有一个字符串参数和一个Throwable参数的构造函数并将参数传递给父类。
super(paramString, paramThrowable);
}
}