// Path: src/main/java/com/elong/pb/newdda/client/exception/ShardingJdbcException.java
// public class ShardingJdbcException extends RuntimeException {
// 
//     private static final long serialVersionUID = -1343739516839252250L;
// 
//     public ShardingJdbcException(final String errorMessage, final Object... args) {
//         super(String.format(errorMessage, args));
//     }
// 
//     public ShardingJdbcException(final Exception cause) {
//         super(cause);
//     }
// 
// }


import com.elong.pb.newdda.client.exception.ShardingJdbcException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package com.elong.pb.newdda.client.router.parser.visitor;


public final class VisitorLogProxy {

    private final static Logger logger = LoggerFactory.getLogger(VisitorLogProxy.class);

    public static <T> T enhance(final Class<T> target) {
        try {
            return target.newInstance();
        } catch (InstantiationException ex) {
            logger.error("create Visitor exception: {}", ex);
// Path: src/main/java/com/elong/pb/newdda/client/exception/ShardingJdbcException.java
// public class ShardingJdbcException extends RuntimeException {
// 
//     private static final long serialVersionUID = -1343739516839252250L;
// 
//     public ShardingJdbcException(final String errorMessage, final Object... args) {
//         super(String.format(errorMessage, args));
//     }
// 
//     public ShardingJdbcException(final Exception cause) {
//         super(cause);
//     }
// 
// }


// Path: src/main/java/com/elong/pb/newdda/client/router/parser/visitor/VisitorLogProxy.java
import com.elong.pb.newdda.client.exception.ShardingJdbcException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package com.elong.pb.newdda.client.router.parser.visitor;


public final class VisitorLogProxy {

    private final static Logger logger = LoggerFactory.getLogger(VisitorLogProxy.class);

    public static <T> T enhance(final Class<T> target) {
        try {
            return target.newInstance();
        } catch (InstantiationException ex) {
            logger.error("create Visitor exception: {}", ex);
            throw new ShardingJdbcException(ex);