This is a cache of http://dbflute.seasar.org/ja/manual/topic/programming/java/exception.html. It is a snapshot of the page at 2024-11-13T00:40:03.009+0000.
Java - Exception (例外) | DBFlute

Java - Exception (例外)

例外クラスの継承構造

コピーして自身のテキストエディターで見たほうが見やすいです。

e.g. exception class model @Java

                           +-----------------+
                           |                 |
                  +------------------+       |
                  |     Throwable    | <>----+
                  +------------------+
                           △ 
                           |
            +------------------------------+
            |                              |
   +--------------------+        +-------------------+
   |       Error        |        |    Exception      |
   +--------------------+        +-------------------+
     NoSuchMethodError                    △ 
     OutOfMemoryError                     |
                           +------------------------------+
                           |                              |
                 +--------------------+        +-------------------+
                 |  RuntimeException  |        |    XxxException   |
                 +--------------------+        +-------------------+
                           △                 IOException, SQLException
                           |
                   NullPointerException            
                   IllegalStateException

例外の翻訳

コピーして自身のテキストエディターで見たほうが見やすいです。

e.g. translation of exception @Java

                 catch        catch        catch
     <---- 例外  /      例外  /     例外    /    例外
             \ /         \ /          \ /       |
   o          |           |            |         \
  /|\   ->    A     ->    B    ->     C      ->      D -> D'
  /\           |     |        PK           ^^v
               |     |                     も
               +設定ファイル (PK)