InputException would be a reference error

Changed to throw new Error.