You will create a new class and write code to log an error to the database when an exception is thrown on adding more troops to the star ship, causing it to be over capacity. For this recipe, ensure that you have added using System.Data; and using System.Data.SqlClient; namespaces to your application.