1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.mail;
  6. /**
  7. * The exception thrown when an invalid method is invoked on an expunged
  8. * Message. The only valid methods on an expunged Message are
  9. * <code>isExpunged()</code> and <code>getMessageNumber()</code>.
  10. *
  11. * @see javax.mail.Message#isExpunged()
  12. * @see javax.mail.Message#getMessageNumber()
  13. * @author John Mani
  14. */
  15. public class MessageRemovedException extends MessagingException {
  16. /**
  17. * Constructs a MessageRemovedException with no detail message.
  18. */
  19. public MessageRemovedException() {
  20. super();
  21. }
  22. /**
  23. * Constructs a MessageRemovedException with the specified detail message.
  24. * @param s the detail message
  25. */
  26. public MessageRemovedException(String s) {
  27. super(s);
  28. }
  29. }