01: /*
02: * Copyright 2001-2005 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * Simply calls the corresponding constructor of its superclass.
41: ***/
42: public TFTPPacketException() {
43: super ();
44: }
45:
46: /***
47: * Simply calls the corresponding constructor of its superclass.
48: ***/
49: public TFTPPacketException(String message) {
50: super(message);
51: }
52: }
|