Exercise: Raise Exception


  • Write a function that expects a positive integer as its single parameter.
  • Raise exception if the parameter is not a number.
  • Raise a different exception if the parameter is not positive.
  • Raise a different exception if the parameter is not whole number.