1. /*
  2. * Copyright 2001-2004 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. * A class used to signify the occurrence of an error in the creation of
  19. * a TFTP packet. It is not declared final so that it may be subclassed
  20. * to identify more specific errors. You would only want to do this if
  21. * you were building your own TFTP client or server on top of the
  22. * <a href="org.apache.commons.net.tftp.TFTP.html#_top_">TFTP</a>
  23. * class if you
  24. * wanted more functionality than the
  25. * <a href="org.apache.commons.net.tftp.TFTPClient.html#receiveFile">receiveFile()</a>
  26. * and
  27. * <a href="org.apache.commons.net.tftp.TFTPClient.html#sendFile">sendFile()</a>
  28. * methods provide.
  29. * <p>
  30. * <p>
  31. * @author Daniel F. Savarese
  32. * @see TFTPPacket
  33. * @see TFTP
  34. ***/
  35. public class TFTPPacketException extends Exception
  36. {
  37. /***
  38. * Simply calls the corresponding constructor of its superclass.
  39. ***/
  40. public TFTPPacketException()
  41. {
  42. super();
  43. }
  44. /***
  45. * Simply calls the corresponding constructor of its superclass.
  46. ***/
  47. public TFTPPacketException(String message)
  48. {
  49. super(message);
  50. }
  51. }