@@ -0,0 +1,539 @@
+package String;%0A%0A/**%0A * Project: LearnJava%0A * Package: String%0A * Author:  Novemser%0A * 2016/10/15%0A */%0Apublic class DatabaseException extends Exception %7B%0A    public DatabaseException(int transactionId, int queryId,%0A                             String msg) %7B%0A        // String.format()%E7%9A%84%E5%86%85%E9%83%A8%E4%B9%9F%E6%98%AF%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AAformatter............%0A        super(String.format(%22(t%25d, q%25d) %25s%22, transactionId, queryId, msg));%0A    %7D%0A%0A    public static void main(String...args) throws DatabaseException %7B%0A        throw new DatabaseException(2, 9, %22Concurrent writing%22);%0A    %7D%0A%7D%0A

Add database exception