You should do something like `if (typeof pricing[printOptions.method] === 'undefined')` for each of the things, that way you don't throw a `TypeError`. Then, you can throw your own error for each error, like this:

    if (typeof pricing[printOptions.method] === 'undefined') {
        throw new Exception('invalid print method: ' + printOptions.method)
    }