Add a ValidateAndThrow method