1. /*
  2. * @(#)StreamCorruptedException.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 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.9, 11/29/01
  14. * @since JDK1.1
  15. */
  16. public class StreamCorruptedException extends ObjectStreamException {
  17. /**
  18. * Create a StreamCorruptedException and list a reason why thrown.
  19. */
  20. public StreamCorruptedException(String reason) {
  21. super(reason);
  22. }
  23. /**
  24. * Create a StreamCorruptedException and list no reason why thrown.
  25. */
  26. public StreamCorruptedException() {
  27. super();
  28. }
  29. }