FizzBuzz Throw is a variation of the famous FizzBuzz code kata. The aim of this kata is to practise how to test methods that throw Errors.
The rules are as follows:
Write a function that accepts a number and throws an Error
a. “fizzError” if the number is divisible by 3
b. “buzzError” if the number is divisible by 5
c. “fizzBuzzError” if the number is divisible by 3 and 5
Otherwise, it returns the number as a String .