Package java.io
Class IOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ASN1Exception,ASN1Exception,CertIOException,CharacterCodingException,CharConversionException,ClientProtocolException,ClosedChannelException,ConnectionClosedException,EndOfBufferException,EndOfSourceException,EOFException,FileLockInterruptionException,FileNotFoundException,HttpRetryException,InterruptedIOException,InvalidPropertiesFormatException,MalformedChunkCodingException,MalformedURLException,NoHttpResponseException,ObjectStreamException,OperatorStreamException,PemGenerationException,ProtocolException,SocketException,SSLException,StreamOverflowException,SyncFailedException,UnknownHostException,UnknownServiceException,UnsupportedEncodingException,URI.MalformedURIException,UTFDataFormatException,ZipException
public class IOException extends Exception
Signals a general, I/O-related error. Error details may be specified when
calling the constructor, as usual. Note there are also several subclasses of
this class for more specific error situations, such as
FileNotFoundException or EOFException.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IOException()Constructs a newIOExceptionwith its stack trace filled in.IOException(String detailMessage)Constructs a newIOExceptionwith its stack trace and detail message filled in.IOException(String message, Throwable cause)Constructs a new instance of this class with detail message and cause filled in.IOException(Throwable cause)Constructs a new instance of this class with its detail cause filled in. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IOException
public IOException()Constructs a newIOExceptionwith its stack trace filled in. -
IOException
Constructs a newIOExceptionwith its stack trace and detail message filled in.- Parameters:
detailMessage- the detail message for this exception.
-
IOException
Constructs a new instance of this class with detail message and cause filled in.- Parameters:
message- The detail message for the exception.cause- The detail cause for the exception.- Since:
- 1.6
-
IOException
Constructs a new instance of this class with its detail cause filled in.- Parameters:
cause- The detail cause for the exception.- Since:
- 1.6
-