#3. Exception management