/ throw number
                throw value;
            } else if (errorType === 2) {           // throw string
                throw `String: ${value}`;
            } else if (errorType === 3) {           // throw Error
                throw new Error(`Generic Error: ${value}`);
            } else if (errorType === 4) {           // throw runtime Error
                undefined.toString();
            }

            // there was an error throwing an error :-{
            throw new Error(`Unknown error type