1. /*
  2. * @(#)StreamCorruptedException.java 1.11 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 control information that was read from an object stream
  13. * violates internal consistency checks.
  14. *
  15. * @author unascribed
  16. * @version 1.11, 02/02/00
  17. * @since JDK1.1
  18. */
  19. public class StreamCorruptedException extends ObjectStreamException {
  20. /**
  21. * Create a StreamCorruptedException and list a reason why thrown.
  22. *
  23. * @param reason String describing the reason for the exception.
  24. */
  25. public StreamCorruptedException(String reason) {
  26. super(reason);
  27. }
  28. /**
  29. * Create a StreamCorruptedException and list no reason why thrown.
  30. */
  31. public StreamCorruptedException() {
  32. super();
  33. }
  34. }