I am getting the following error when running my code from Developer Console.
public static void findShortestSubstring(String stringObj)
{
Integer stringLength = stringObj.length();
List<String> vowelList = New List<String>();
vowelList.add('a');
vowelList.add('e');
vowelList.add('i');
vowelList.add('o');
vowelList.add('u');
//Set to hold all possible words startting with Vowel and ending with consonant
Set<String> allWordsSet = New Set<String>();
//Looping over each charachter in the main string
for(Integer i=0;i<stringLength;i++)
{
if(vowelList.contains(stringObj.substring(i, i+1)))
{
Integer j=i;
while(j<stringLength)
{
Integer startPosition = j;
String subString = '';
for(Integer x = startPosition;x<=stringLength;x++)
{
substring += stringObj.substring(x,x+1);
startPosition++;
}
if(vowelList.contains(subString.substring(j, j+1)) && !vowelList.contains(subString.substring(startPosition,startPosition+1)))
allWordsSet.add(subString);
j++;
}
}
}
System.Debug('Le All Words Set: '+allWordsSet);
}
I am getting the following error Message: Line: undefined, Column: undefined Response to EXEC was : Session expired or invalid. HTTP CODE[401]
Please help me debug this error.