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.nntp;
  17. import java.io.IOException;
  18. /***
  19. * NNTPConnectionClosedException is used to indicate the premature or
  20. * unexpected closing of an NNTP connection resulting from a
  21. * <a href="org.apache.commons.net.nntp.NNTPReply.html#SERVICE_DISCONTINUED">
  22. * NNTPReply.SERVICE_DISCONTINUED </a> response (NNTP reply code 400) to a
  23. * failed NNTP command. This exception is derived from IOException and
  24. * therefore may be caught either as an IOException or specifically as an
  25. * NNTPConnectionClosedException.
  26. * <p>
  27. * <p>
  28. * @author Daniel F. Savarese
  29. * @see NNTP
  30. * @see NNTPClient
  31. ***/
  32. public final class NNTPConnectionClosedException extends IOException
  33. {
  34. /*** Constructs a NNTPConnectionClosedException with no message ***/
  35. public NNTPConnectionClosedException()
  36. {
  37. super();
  38. }
  39. /***
  40. * Constructs a NNTPConnectionClosedException with a specified message.
  41. * <p>
  42. * @param message The message explaining the reason for the exception.
  43. ***/
  44. public NNTPConnectionClosedException(String message)
  45. {
  46. super(message);
  47. }
  48. }