class LicenseAcceptance::Acceptor

def check_and_persist!(product_id, version)

handle the exception.
wrapper. Apps with more complex logic (like logging to a logging engine) should call the non-bang version and
For applications that just need simple logic to handle a failed license acceptance flow we include this small
def check_and_persist!(product_id, version)
  check_and_persist(product_id, version)
rescue LicenseNotAcceptedError => e
  output.puts "#{e.product.pretty_name} cannot execute without accepting the license"
  exit 172
end