{
return terabytes(value);
}
else
{
throw new StringValueConversionException("Units not recognized: " + string);
}
}
catch (ParseException e)
{
throw new StringValueConversionException("Unable to parse numeric part: " + string,
e);
}
}
else
{
throw new StringValueConversionException("Unable to parse bytes: " + string);
}
}