public QueryException(final String message,final int errorCode,final SqlStates sqlState){
  super(message);
  this.message=message;
  this.errorCode=errorCode;
  this.sqlState=sqlState.getSqlState();
}

public QueryException ( final String message , final int errorCode , final SqlStates sqlState ) { super ( message ) ; this . message = message ; this . errorCode = errorCode ; this . sqlState = sqlState . getSqlState ( ) ; }
creates a query exception with a message .
