if ( endcolumn == -1 )
{
endcolumn = context.length();
}
return new CompilerError( file, isError, line, startcolumn, line, endcolumn, message.trim() );
}
catch ( NoSuchElementException e )
{
return new CompilerError( "no more tokens - could not parse error message: " + error, isError );
}
catch ( NumberFormatException e )
{
return new CompilerError( "could not parse error message: " + error, isError );
}
catch ( Exception e )
{
return new CompilerError( "could not parse error message: " + error, isError );
}
}