when invalid wylie is encountered, instead of displaying a message it raises an exception.
This commit is contained in:
parent
7cdbf33333
commit
97f5fe91b3
1 changed files with 4 additions and 3 deletions
|
@ -1058,13 +1058,14 @@ void ItsComponents(){
|
|||
}
|
||||
|
||||
//For cleaning up the invalid syllables by throwing them at the end of the list.
|
||||
void InValidSyllable(){
|
||||
void InValidSyllable() throws RuntimeException
|
||||
{
|
||||
nVowels =1;
|
||||
TibetanSyllableFlag = true;
|
||||
System.out.println("This is not a valid Tibetan syllable: "+theSyllable);
|
||||
// System.out.println("This is not a valid Tibetan syllable: "+theSyllable);
|
||||
for(int i=0; i<10; i++)
|
||||
for(int j=0; j<20;j++) Components[i][j] = "invalid";
|
||||
|
||||
throw new RuntimeException("This is not a valid Tibetan syllable: "+theSyllable);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue