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