Java SQLException createFeatureNotSupportedException()

Here you can find the source of createFeatureNotSupportedException()

Description

create Feature Not Supported Exception

License

Apache License

Declaration

public static SQLException createFeatureNotSupportedException() 

Method Source Code


//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*/
}

Related

  1. appendToExceptionList(List list, SQLException sqlException)
  2. convertSQLExceptionToString(SQLException e)
  3. exceptionMsg2LocalizedStr(final Throwable e)
  4. exceptionMsg2str(final Throwable e)
  5. exceptionToString(Throwable e)
  6. extractErrorCode(SQLException sqlException)