View Javadoc

1   /*
2    * Copyright 2001-2005 The Apache Software Foundation
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.commons.net.tftp;
17  
18  /***
19   * A class used to signify the occurrence of an error in the creation of
20   * a TFTP packet.  It is not declared final so that it may be subclassed
21   * to identify more specific errors.  You would only want to do this if
22   * you were building your own TFTP client or server on top of the
23   * {@link org.apache.commons.net.tftp.TFTP}
24   * class if you
25   * wanted more functionality than the
26   * {@link org.apache.commons.net.tftp.TFTPClient#receiveFile receiveFile()}
27   * and
28   * {@link org.apache.commons.net.tftp.TFTPClient#sendFile sendFile()}
29   * methods provide.
30   * <p>
31   * <p>
32   * @author Daniel F. Savarese
33   * @see TFTPPacket
34   * @see TFTP
35   ***/
36  
37  public class TFTPPacketException extends Exception
38  {
39  
40      /***
41       * Simply calls the corresponding constructor of its superclass.
42       ***/
43      public TFTPPacketException()
44      {
45          super();
46      }
47  
48      /***
49       * Simply calls the corresponding constructor of its superclass.
50       ***/
51      public TFTPPacketException(String message)
52      {
53          super(message);
54      }
55  }