Skip to content

Instantly share code, notes, and snippets.

@gorohoroh
Created May 2, 2023 08:35
Show Gist options
  • Save gorohoroh/fc3fbe9dc5001d6de5ba4f9ef90d2af8 to your computer and use it in GitHub Desktop.
Save gorohoroh/fc3fbe9dc5001d6de5ba4f9ef90d2af8 to your computer and use it in GitHub Desktop.
Java IOException subclasses
IOException (java.io)
    TimestampException in TSResponse (sun.security.timestamp)
    UserPrincipalNotFoundException (java.nio.file.attribute)
    JarException (sun.tools.jar)
    JMXProviderException (javax.management.remote)
    JMXServerErrorException (javax.management.remote)
    MalformedURIException in URI (com.sun.org.apache.xerces.internal.util)
    HttpTimeoutException (java.net.http)
        HttpConnectTimeoutException (java.net.http)
    SaslException (javax.security.sasl)
        AuthenticationException (javax.security.sasl)
    FileLockInterruptionException (java.nio.channels)
    DecodeException in Ber (com.sun.jndi.ldap)
    HttpRetryException (java.net)
    TelnetProtocolException (sun.net)
    ZipException (java.util.zip)
        JarException (java.util.jar)
    PortFileInaccessibleException (com.sun.tools.sjavac.client)
    FileSystemException (java.nio.file)
        NoSuchFileException (java.nio.file)
        FileSystemLoopException (java.nio.file)
        NotDirectoryException (java.nio.file)
        DirectoryNotEmptyException (java.nio.file)
        NotLinkException (java.nio.file)
        AtomicMoveNotSupportedException (java.nio.file)
        FileAlreadyExistsException (java.nio.file)
        AccessDeniedException (java.nio.file)
    PNGException in PNGImageDecoder (sun.awt.image)
    EOFException (java.io)
        Anonymous in XMLEntityScanner (com.sun.org.apache.xerces.internal.impl)
    FileNotFoundException (java.io)
    MalformedURIException in URI (com.sun.org.apache.xml.internal.serializer.utils)
    ConnectionExpiredException (jdk.internal.net.http.common)
    RemoteException (java.rmi)
        UnmarshalException (java.rmi)
        UnknownHostException (java.rmi)
        NoSuchObjectException (java.rmi)
        ServerError (java.rmi)
        AccessException (java.rmi)
        UnexpectedException (java.rmi)
        ServerException (java.rmi)
        ExportException (java.rmi.server)
            SocketSecurityException (java.rmi.server)
        SkeletonNotFoundException (java.rmi.server)
        ServerRuntimeException (java.rmi)
        MarshalException (java.rmi)
        ConnectIOException (java.rmi)
        SkeletonMismatchException (java.rmi.server)
        StubNotFoundException (java.rmi)
        ConnectException (java.rmi)
    SyncFailedException (java.io)
    SSLException (javax.net.ssl)
        SSLProtocolException (javax.net.ssl)
        SSLKeyException (javax.net.ssl)
        SSLHandshakeException (javax.net.ssl)
        SSLPeerUnverifiedException (javax.net.ssl)
    CharConversionException (java.io)
        MalformedByteSequenceException (com.sun.org.apache.xerces.internal.impl.io)
    FilerException (javax.annotation.processing)
    UnsupportedEncodingException (java.io)
    UnknownServiceException (java.net)
    UTFDataFormatException (java.io)
    ParsingException (sun.security.pkcs)
    CharacterCodingException (java.nio.charset)
        MalformedInputException (java.nio.charset)
        UnmappableCharacterException (java.nio.charset)
    IIOException (javax.imageio)
        IIOInvalidTreeException (javax.imageio.metadata)
    ClosedException (jdk.internal.org.jline.utils)
    TransportTimeoutException (com.sun.jdi.connect)
    InterruptedIOException (java.io)
        SocketTimeoutException (java.net)
    InvalidPropertiesFormatException (java.util)
    SocketException (java.net)
        ConnectionResetException (sun.net)
        ConnectException (java.net)
        PortUnreachableException (java.net)
        BindException (java.net)
        NoRouteToHostException (java.net)
    SmtpProtocolException (sun.net.smtp)
    WebSocketHandshakeException (java.net.http)
    EncodeException in Ber (com.sun.jndi.ldap)
    InterruptedByTimeoutException (java.nio.channels)
    StreamClosedException (sun.net.httpserver)
    MalformedURIException in URI (com.sun.org.apache.xml.internal.utils)
    ALPNException in Http2Connection (jdk.internal.net.http)
    MalformedURLException (java.net)
    ClosedChannelException (java.nio.channels)
        AsynchronousCloseException (java.nio.channels)
            ClosedByInterruptException (java.nio.channels)
    AttachOperationFailedException (com.sun.tools.attach)
    ProxyAuthenticationRequired (jdk.internal.net.http)
    UnknownHostException (java.net)
    ObjectStreamException (java.io)
        InvalidClassException (java.io)
        StreamCorruptedException (java.io)
        OptionalDataException (java.io)
        InvalidObjectException (java.io)
        NotActiveException (java.io)
        NotSerializableException (java.io)
        WriteAbortedException (java.io)
    ProtocolException (java.net)
    ConfigurationException (sun.security.pkcs11)
    ClosedConnectionException (com.sun.jdi.connect.spi)
    FtpLoginException (sun.net.ftp)
    ChangedCharSetException (javax.swing.text)
    InvalidDataException (com.sun.media.sound)
        RIFFInvalidDataException (com.sun.media.sound)
        InvalidFormatException (com.sun.media.sound)
            RIFFInvalidFormatException (com.sun.media.sound)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment