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;
  17. import java.io.IOException;
  18. /***
  19. * This exception is used to indicate that the reply from a server
  20. * could not be interpreted. Most of the NetComponents classes attempt
  21. * to be as lenient as possible when receiving server replies. Many
  22. * server implementations deviate from IETF protocol specifications, making
  23. * it necessary to be as flexible as possible. However, there will be
  24. * certain situations where it is not possible to continue an operation
  25. * because the server reply could not be interpreted in a meaningful manner.
  26. * In these cases, a MalformedServerReplyException should be thrown.
  27. * <p>
  28. * <p>
  29. * @author Daniel F. Savarese
  30. ***/
  31. public class MalformedServerReplyException extends IOException
  32. {
  33. /*** Constructs a MalformedServerReplyException with no message ***/
  34. public MalformedServerReplyException()
  35. {
  36. super();
  37. }
  38. /***
  39. * Constructs a MalformedServerReplyException with a specified message.
  40. * <p>
  41. * @param message The message explaining the reason for the exception.
  42. ***/
  43. public MalformedServerReplyException(String message)
  44. {
  45. super(message);
  46. }
  47. }