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