try to parse value before throw an exception