java.io

Class StreamCorruptedException

Implemented Interfaces:
Serializable

public class StreamCorruptedException
extends ObjectStreamException

Thrown when control information that was read from an object stream violates internal consistency checks.
Since:
JDK1.1
See Also:
Serialized Form

Constructor Summary

StreamCorruptedException()
Create a StreamCorruptedException and list no reason why thrown.
StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown.

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

StreamCorruptedException

public StreamCorruptedException()
Create a StreamCorruptedException and list no reason why thrown.

StreamCorruptedException

public StreamCorruptedException(String reason)
Create a StreamCorruptedException and list a reason why thrown.
Parameters:
reason - String describing the reason for the exception.
Usages and Demos :

View More Examples of StreamCorruptedException(String reason)
   1:         } catch (URISyntaxException e) {
   2:             throw new StreamCorruptedException(e.getMessage());
   3:         }
   4:     }

View Full Code Here
   1:         {
   2:             throw new StreamCorruptedException(cce.toString());
   3:         }
   4:     }

View Full Code Here
   1:       } catch (ClassFormatError x) {
   2:         throw new StreamCorruptedException(x.getMessage());
   3:       }
   4: 
   5:       cd.name = klass.getClassName();

View Full Code Here
   1:                 } catch (IOException ioe) {
   2:                     throw new StreamCorruptedException(ioe.getMessage());
   3:                 }
   4:             }
   5:             return true;

View Full Code Here
   1:         {
   2:             throw new StreamCorruptedException(exception.toString());
   3:         }
   4:     }
   5:     

View Full Code Here