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 a write is attempted on a read-only attribute
  8. * of any Messaging object.
  9. *
  10. * @author John Mani
  11. */
  12. public
  13. class IllegalWriteException extends MessagingException {
  14. /**
  15. * Constructs a IllegalWriteException with no detail message.
  16. */
  17. public IllegalWriteException() {
  18. super();
  19. }
  20. /**
  21. * Constructs a IllegalWriteException with the specified detail message.
  22. * @param s the detail message
  23. */
  24. public IllegalWriteException(String s) {
  25. super(s);
  26. }
  27. }