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 a TFTP packet. It is not declared final so that it may be subclassed to identify more
022 * specific errors. You would only want to do this if you were building your own TFTP client or server on top of the {@link org.apache.commons.net.tftp.TFTP}
023 * class if you wanted more functionality than the {@link org.apache.commons.net.tftp.TFTPClient#receiveFile receiveFile()} and
024 * {@link org.apache.commons.net.tftp.TFTPClient#sendFile sendFile()} methods provide.
025 *
026 *
027 * @see TFTPPacket
028 * @see TFTP
029 */
030
031public class TFTPPacketException extends Exception {
032
033    private static final long serialVersionUID = -8114699256840851439L;
034
035    /**
036     * Simply calls the corresponding constructor of its superclass.
037     */
038    public TFTPPacketException() {
039    }
040
041    /**
042     * Simply calls the corresponding constructor of its superclass.
043     *
044     * @param message the message
045     */
046    public TFTPPacketException(final String message) {
047        super(message);
048    }
049}