1. /*
  2. * @(#)NotActiveException.java 1.12 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.io;
  11. /**
  12. * Thrown when serialization or deserialization is not active.
  13. *
  14. * @author unascribed
  15. * @version 1.12, 02/02/00
  16. * @since JDK1.1
  17. */
  18. public class NotActiveException extends ObjectStreamException {
  19. /**
  20. * Constructor to create a new NotActiveException with the reason given.
  21. *
  22. * @param reason a String describing the reason for the exception.
  23. */
  24. public NotActiveException(String reason) {
  25. super(reason);
  26. }
  27. /**
  28. * Constructor to create a new NotActiveException without a reason.
  29. */
  30. public NotActiveException() {
  31. super();
  32. }
  33. }