Here you can find the source of throwException(String message)
public static SQLException throwException(String message) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.SQLException; public class Main { public static SQLException throwException(String message) throws SQLException { throw new SQLException(message, "FULLTEXT"); }//w w w . ja v a 2 s . c om }