// here, the ASCII-encoded decimal or hex string is used
try {
this.value = new BigInteger(str.toString(), base);
break;
} catch (NumberFormatException e) {
throw runtime.newArgumentError("value " + str + " is not legal for radix " + base);
}
case 0: // FIXME: not currently supporting BN_mpi2bn
throw runtime.newArgumentError("unsupported radix: " + base);
default:
throw runtime.newArgumentError("illegal radix: " + base);