    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 *      https://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 * @see TFTPPacket
    027 * @see TFTP
    028 */
    029
    030public class TFTPPacketException extends Exception {
    031
    032    private static final long serialVersionUID = -8114699256840851439L;
    033
    034    /**
    035     * Simply calls the corresponding constructor of its superclass.
    036     */
    037    public TFTPPacketException() {
    038    }
    039
    040    /**
    041     * Simply calls the corresponding constructor of its superclass.
    042     *
    043     * @param message the message
    044     */
    045    public TFTPPacketException(final String message) {
    046        super(message);
    047    }
    048}