better exception handling message in gateway to C code when parsing a string
for a polynomial