- We have a class called LogException. The class implements a CaptureException method using the following code segment: public static void CaptureException(Exception ex). Pick one of the following syntaxes to make sure all exceptions in the class are captured and rethrow the original exception, including the stack:
-
catch (Exception ex)
{
LogException.CaptureException(ex);
throw;
} -
catch (Exception ex)
{
LogException.CaptureException(ex);
throw ex;
} -
catch
{
LogException(new Exception());
} -
catch
{
var ex = new Exception();
throw ex;
}
-
- You are creating a class named Store, which should have a Store Type member that meets the following requirements:
- The member must be accessible publicly.
- The member must only acquire a restricted set of values.
- While setting the value, the member must ensure that it validates the input set in the...




















































