Add generic argument checks, e.g for NumberFormatException