1. /*
  2. * @(#)NotActiveException.java 1.15 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.io;
  8. /**
  9. * Thrown when serialization or deserialization is not active.
  10. *
  11. * @author unascribed
  12. * @version 1.15, 12/19/03
  13. * @since JDK1.1
  14. */
  15. public class NotActiveException extends ObjectStreamException {
  16. /**
  17. * Constructor to create a new NotActiveException with the reason given.
  18. *
  19. * @param reason a String describing the reason for the exception.
  20. */
  21. public NotActiveException(String reason) {
  22. super(reason);
  23. }
  24. /**
  25. * Constructor to create a new NotActiveException without a reason.
  26. */
  27. public NotActiveException() {
  28. super();
  29. }
  30. }