001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018package org.apache.commons.net.tftp;
019
020/***
021 * A class used to signify the occurrence of an error in the creation of
022 * a TFTP packet.  It is not declared final so that it may be subclassed
023 * to identify more specific errors.  You would only want to do this if
024 * you were building your own TFTP client or server on top of the
025 * {@link org.apache.commons.net.tftp.TFTP}
026 * class if you
027 * wanted more functionality than the
028 * {@link org.apache.commons.net.tftp.TFTPClient#receiveFile receiveFile()}
029 * and
030 * {@link org.apache.commons.net.tftp.TFTPClient#sendFile sendFile()}
031 * methods provide.
032 *
033 *
034 * @see TFTPPacket
035 * @see TFTP
036 ***/
037
038public class TFTPPacketException extends Exception
039{
040
041    private static final long serialVersionUID = -8114699256840851439L;
042
043    /***
044     * Simply calls the corresponding constructor of its superclass.
045     ***/
046    public TFTPPacketException()
047    {
048        super();
049    }
050
051    /***
052     * Simply calls the corresponding constructor of its superclass.
053     * @param message the message
054     ***/
055    public TFTPPacketException(String message)
056    {
057        super(message);
058    }
059}