For TypeError, better to use 'new TypeError()' instead of 'null'