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    
018    package 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     * <p>
033     * <p>
034     * @author Daniel F. Savarese
035     * @see TFTPPacket
036     * @see TFTP
037     ***/
038    
039    public class TFTPPacketException extends Exception
040    {
041    
042        /***
043         * Simply calls the corresponding constructor of its superclass.
044         ***/
045        public TFTPPacketException()
046        {
047            super();
048        }
049    
050        /***
051         * Simply calls the corresponding constructor of its superclass.
052         ***/
053        public TFTPPacketException(String message)
054        {
055            super(message);
056        }
057    }