Here you can find the source of createFeatureNotSupportedException()
public static SQLException createFeatureNotSupportedException()
//package com.java2s; //License from project: Apache License import java.sql.SQLException; import java.sql.SQLFeatureNotSupportedException; public class Main { public static SQLException createFeatureNotSupportedException() { StackTraceElement ste = new Exception().getStackTrace()[1]; String methodName = ste.getMethodName(); return new SQLFeatureNotSupportedException(methodName + " is not supported"); //$NON-NLS-1$ }/* ww w.j a v a2 s.c om*/ }