/* * 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); } }