Removing custom exception class in favor of TypeError